root/lang/perl/Module-Setup/trunk/t/Flavor/LocalPlugin.pm @ 21448

Revision 21448, 0.5 kB (checked in by yappo, 6 years ago)

oops

Line 
1package t::Flavor::LocalPlugin;
2use strict;
3use warnings;
4use base 'Module::Setup::Flavor';
51;
6
7__DATA__
8
9---
10config:
11  plugins:
12    - +LocalPlugin
13---
14file: test.txt
15template: |
16  test text
17---
18plugin: localplugin.pm
19template: |
20  package LocalPlugin;
21  use strict;
22  use warnings;
23  use base 'Module::Setup::Plugin';
24
25  sub register {
26      my($self, ) = @_;
27      $self->add_trigger( append_template_file => sub { $self->append_template_file(@_) } );
28  }
29
30  1;
31
32  __DATA__
33
34  ---
35  file: append.txt
36  template: |
37    append
Note: See TracBrowser for help on using the browser.