Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#!/usr/bin/env perl | ||
use strict; | ||
use warnings; | ||
use Test::More; | ||
|
||
use FindBin; | ||
use Pod::Elemental; | ||
use Pod::Weaver; | ||
|
||
my $weaver = Pod::Weaver->new_from_config({root => "$FindBin::Bin/01"}); | ||
|
||
my $doc = Pod::Elemental->read_string(<<'POD'); | ||
=head1 BEGINNING | ||
start of pod | ||
=head1 ENDING | ||
end of pod | ||
=cut | ||
POD | ||
|
||
my $woven = $weaver->weave_document({pod_document => $doc}); | ||
|
||
is($woven->as_pod_string, <<'POD', "got the right pod"); | ||
=pod | ||
=head1 BEGINNING | ||
start of pod | ||
=head1 TEMPLATE | ||
got template with parameter FOO | ||
=head1 ENDING | ||
end of pod | ||
=cut | ||
POD | ||
|
||
done_testing; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
got template with parameter {{ $foo }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[@CorePrep] | ||
|
||
[Generic / BEGINNING] | ||
|
||
[Template / TEMPLATE] | ||
template = t/01/template.section | ||
foo = FOO | ||
|
||
[Generic / ENDING] |