Template::MagicTemplate::Magic is a Perl module for magic merger of runtime values with templates. | |
Download |
Template::Magic Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Domizio Demichelis
- Publisher web site:
- http://search.cpan.org/~domizio/CGI-Application-Plus-1.21/lib/CGI/Application/CheckRM.pm
Template::Magic Tags
Template::Magic Description
Template::Magic is a Perl module for magic merger of runtime values with templates. Template::Magic is a Perl module for magic merger of runtime values with templates.SYNOPSISJust add these 2 magic lines to your code... use Template::Magic; Template::Magic->new->print( '/path/to/template' );to have all your variable and subroutines merged with the template file, or set one or more constructor array to customize the output generation as you need: use Template::Magic qw( -compile ); $tm = new Template::Magic paths => , markers => , lookups => , zone_handlers => , value_handlers => , text_handlers => sub {print lc $_} , output_handlers => sub {print uc $_} , post_handlers => &my_post_handler , options => 'no_cache' ; $tm->nprint( template => '/path/to/template' lookups => %my_special_hash ); Requirements: · Perl version >= 5.6.1 · OOTools >= 2 · IO::Util >= 1.46 · File::Spec >= 0
Template::Magic Related Software