All of the various engines offer the same features - each using a different syntax and interface. Template::Alloy now provides a full-featured implementation of the Template::Toolkit language.Īfter a move to a new company that was using HTML::Template::Expr and Text::Tmpl templates, support was investigated and interfaces for HTML::Template, HTML::Template::Expr, Text::Tmpl, and Velocity (VTL) were added. One thing led to another and soon Alloy provided for most of the features of TT2 as well as some from TT3. In winter of 2005-2006 Alloy was revamped to add a few features. This was fine and dandy for a couple of years. That was all the original Template::Alloy did. It used TT2 style variables in TT2 style tags "". The Template::Alloy (Alloy hereafter) was originally a part of the CGI::Ex suite that performed simple variable interpolation. Template::Alloy happened by accident (accidentally on purpose). There is even Template::Alloy::JS for getting a little more speed when that is necessary. And Template::Alloy is fast - whether your using mod_perl, CGI, or running from the commandline. With Template::Alloy you can use your favorite template interface and syntax and get features from each of the other major template systems. Template::Alloy represents the mixing of features and capabilities from all of the major mini-language based template systems (support for non-mini-language based systems will happen eventually). "An alloy is a homogeneous mixture of two or more elements" (). $t->process_js(\$str, $swap, \$out) DESCRIPTION $t->process_js('my/template.jstem', $swap, \$out) My $out = $t->merge(\$str, $swap) Javascript style usage (requires Template::Alloy::JS) my $t = Template::Alloy->new My $out = $t->merge('my/template.vtl', $swap) # Alloy uses the same syntax and configuration as Text::Tmpl Velocity (VTL) style usage my $t = Template::Alloy->new My $out = $t->parse_file('my/template.tmpl') # Alloy can also use the same syntax and configuration as HTML::Template Text::Tmpl style usage my $t = Template::Alloy->new # Alloy uses the same syntax and configuration as Template::Toolkit HTML::Template::Expr style usage my $t = Template::Alloy->new( $t->process('my/template.tt', $swap, \$out) Template::Alloy - TT2/3, HT, HTE, Tmpl, and Velocity Engine SYNOPSIS Template::Toolkit style usage my $t = Template::Alloy->new( Javascript style usage (requires Template::Alloy::JS).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |