blib/lib/Mojolicious/Command/generate/qx_mojo_app/lib/App.pm untested

filter: Statementstmt 0.0% 0 / 8 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 11 CC 1 SCAR 6.9
CC
1
Cov
0%
startup
2.0
BEGIN
2.0
CRAP 2.0
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