Prev Next Index | Page 8/16 |
use Template::Simple ; my $obj = Template::Simple->new( templates => { example => <<TMPL } ) ; <html> <head><title>[% title %]</title></head> <body> <ul>[% START posts %] <li> <h3>[% title %]</h3> <span>[% date %]</span> </li>[% END posts %] </ul> </body> </html> TMPL $obj->compile( 'example' ) ; print $obj->get_source( 'example' ) ;
Prev Next Index Contents | © 2011 Uri Guttman | Page 8/16 |