| 1 | package Pod::Weaver::Role::Section 4.022; | ||
| 2 | # ABSTRACT: a plugin that will get a section into a woven document | ||
| 3 | |||
| 4 | 10 | ▶ | use Moose::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 10 | with 'Pod::Weaver::Role::Plugin'; | |
| 6 | |||
| 7 | 10 | ▶ | use namespace::autoclean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | #pod =head1 IMPLEMENTING | ||
| 10 | #pod | ||
| 11 | #pod This role is used by plugins that will append sections to the output document. | ||
| 12 | #pod They must provide a method, C<weave_section> which will be invoked like this: | ||
| 13 | #pod | ||
| 14 | #pod $section_plugin->weave_section($output_document, \%input); | ||
| 15 | #pod | ||
| 16 | #pod They are expected to append their output to the output document, but they are | ||
| 17 | #pod free to behave differently if it's needed to do something really cool. | ||
| 18 | #pod | ||
| 19 | #pod =cut | ||
| 20 | |||
| 21 | 10 | requires 'weave_section'; | |
| 22 | |||
| 23 | 10 | 1; | |
| 24 | |||
| 25 | __END__ | ||