| 1 | package Poet::Mason::Plugin::Compilation; | ||
| 2 | 2 | $Poet::Mason::Plugin::Compilation::VERSION = '0.16'; | |
| 3 | 2 | ▶ | use Mason::PluginRole; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | # Add 'use Poet qw($conf $poet :web)' at the top of every component | ||
| 6 | # | ||
| 7 | 14 | ▶ | override 'output_class_header' => sub { |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 8 | 14 | return join( "\n", super(), 'use Poet qw($conf $poet :web);' ); | |
| 9 | 2 | }; | |
| 10 | |||
| 11 | 2 | 1; | |