« blib/lib/auto/share/dist/Poet/generate.skel/lib/MyApp/Mason.pm
↑ Summary
blib/lib/auto/share/dist/Poet/generate.skel/lib/MyApp/Mason/Request.pm »
| 1 | package <% $app_name %>::Mason::Compilation; | ||
| 2 | use Poet qw($conf $poet); | ||
| 3 | use Poet::Moose; | ||
| 4 | |||
| 5 | extends 'Mason::Compilation'; | ||
| 6 | |||
| 7 | # Add customizations to Mason::Compilation here. | ||
| 8 | # | ||
| 9 | # e.g. Add Perl code to the top of every compiled component | ||
| 10 | # | ||
| 11 | # override 'output_class_header' => sub { | ||
| 12 | # return join("\n", super(), 'use Foo;', 'use Bar qw(baz);'); | ||
| 13 | # }; | ||
| 14 | |||
| 15 | 1; |