« blib/lib/Mojolicious/Command/generate/qx_mojo_app/bin/script.pl
↑ Summary
blib/lib/Mojolicious/Command/generate/qx_mojo_app/lib/App/Controller/RpcService.pm »
| 1 | % my $p = shift; | ||
| 2 | package <%= $p->{class} %>; | ||
| 3 | |||
| 4 | use Mojo::Base 'Mojolicious'; | ||
| 5 | |||
| 6 | =head1 NAME | ||
| 7 | |||
| 8 | <%= $p->{class} %> - the Mojolicious application class | ||
| 9 | |||
| 10 | =head1 SYNOPSIS | ||
| 11 | |||
| 12 | use Mojolicious::Commands; | ||
| 13 | Mojolicious::Commands->start_app('<%= $p->{class} %>'); | ||
| 14 | |||
| 15 | =head1 DESCRIPTION | ||
| 16 | |||
| 17 | Configure the mojo engine to run our application logic as web requests arrive. | ||
| 18 | |||
| 19 | =head1 ATTRIBUTES | ||
| 20 | |||
| 21 | All the attributes from L<Mojolicious>. | ||
| 22 | |||
| 23 | =cut | ||
| 24 | |||
| 25 | =head1 METHODS | ||
| 26 | |||
| 27 | All the methods of L<Mojolicious> as well as: | ||
| 28 | |||
| 29 | =cut | ||
| 30 | |||
| 31 | =head2 startup | ||
| 32 | |||
| 33 | Mojolicious calls the startup method at initialization time. | ||
| 34 | |||
| 35 | =cut | ||
| 36 | |||
| 37 | sub startup { | ||
| 38 | my $app = shift; | ||
| 39 | |||
| 40 | # $app->secrets(['my very own secret']); | ||
| 41 | |||
| 42 | $app->plugin('qooxdoo',{ | ||
| 43 | path => '/jsonrpc', | ||
| 44 | controller => 'RpcService' | ||
| 45 | }); | ||
| 46 | } | ||
| 47 | |||
| 48 | 1; | ||
| 49 | |||
| 50 | <%= '__END__' %> | ||
| 51 | |||
| 52 | =head1 COPYRIGHT | ||
| 53 | |||
| 54 | Copyright (c) <%= $p->{year} %> by <%= $p->{fullName} %>. All rights reserved. | ||
| 55 | |||
| 56 | =head1 AUTHOR | ||
| 57 | |||
| 58 | S<<%= $p->{fullName} %> E<lt><%= $p->{email} %>E<gt>> | ||
| 59 | |||
| 60 | =cut | ||
| 61 |