Template::Trivial

Template::Trivial is a simple (yet powerful) and fast substitution templates.
Download

Template::Trivial Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Scott Wiersdorf
  • Publisher web site:
  • http://search.cpan.org/~scottw/

Template::Trivial Tags


Template::Trivial Description

Template::Trivial is a simple (yet powerful) and fast substitution templates. Template::Trivial is a simple (yet powerful) and fast substitution templates.SYNOPSIS use Template::Trivial; my $tmpl = new Template::Trivial( templates => '/path/to/templates' ); $tmpl->define( main => 'main.tmpl', list => 'list.tmpl' ); $tmpl->define_from_string( item => '{ITEM}' ); for $i ( 1 .. 3 ) { $tmpl->assign( ITEM => "Thingy $_" ); $tmpl->parse( '.ITEMS' => 'item' ); } $tmpl->parse(LIST => 'list' ); $tmpl->parse(MAIN => 'main' ); ## print out print $tmpl->to_string('MAIN'); Requirements: · Perl


Template::Trivial Related Software