Changeset 27003
- Timestamp:
- 12/18/08 15:40:24 (5 years ago)
- Location:
- lang/perl/Text-MicroTemplate/trunk/lib/Text
- Files:
-
- 2 modified
-
MicroTemplate.pm (modified) (2 diffs)
-
MicroTemplate/File.pm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/Text-MicroTemplate/trunk/lib/Text/MicroTemplate.pm
r27002 r27003 12 12 use Carp 'croak'; 13 13 14 our $VERSION = '0.0 4';14 our $VERSION = '0.05'; 15 15 our @ISA = qw(Exporter); 16 16 our @EXPORT_OK = qw(encoded_string build_mt render_mt); … … 570 570 returns perl code that renders the template when evaluated 571 571 572 =head2 filter(sub filter_func { ... })->sub({ template lines }) 573 574 filters given template lines 575 576 ? $_mt->filter(sub { s/Hello/Good bye/g })->sub({ 577 Hello, John! 578 ? }) 579 572 580 =head1 SEE ALSO 573 581 -
lang/perl/Text-MicroTemplate/trunk/lib/Text/MicroTemplate/File.pm
r27000 r27003 140 140 Renders the template file with given arguments. 141 141 142 =head2 wrapper_file($file, @args)->(sub { template lines }) 143 144 Wraps given template with wrapper file. Internally the processed template is passed as $_[0] to the wrapper template. 145 142 146 =head1 SEE ALSO 143 147
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)