HTML::KTemplateProcess HTML templates | |
Download |
HTML::KTemplate Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Kasper Dziurdz
- Publisher web site:
- http://search.cpan.org/~kasper/
HTML::KTemplate Tags
HTML::KTemplate Description
Process HTML templates HTML::KTemplate is a Perl module to process HTML templates.SYNOPSISCGI-Script: #!/usr/bin/perl -w use HTML::KTemplate; $tpl = HTML::KTemplate->new('path/to/templates'); $tpl->assign( TITLE => 'Template Test Page' ); $tpl->assign( TEXT => 'Some welcome text ...' ); foreach (1 .. 3) { $tpl->assign( LOOP, TEXT => 'Just a test ...', ); } $tpl->process('template.tpl'); $tpl->print();Template: < html > < head >< title >< /title > < body > Hello! < p > < !-- BEGIN LOOP -- > < br > < !-- END LOOP -- > < /body > < /html >Output: Hello! Some welcome text ... Just a test ... Just a test ... Just a test ... Requirements: · Perl
HTML::KTemplate Related Software