Template::Alloy::Tmpl
Text::Tmpl role
- Provided by: libtemplate-alloy-perl (Version: 1.020-1)
- Report a bug
Text::Tmpl role
The Template::Alloy::Tmpl role provides the syntax and the interface for Text::Tmpl. It also brings many of the features from the various templating systems.
See the Template::Alloy documentation for configuration and other parameters.
$obj->set_delimiters('#[', ']#');
$obj->set_value(key => $value);
$obj->set_values(\%values);
my $out = $obj->process_string("#[echo $foo]#");
my $out = $obj->process_file("my/file.tmpl");
my $ref = $obj->loop_iteration('loop1'); # creates iteration 0
$ref->set_values($hash);
my $ref = $obj->fetch_loop_iteration('loop1', 0);
$ref->set_values($hash);
register_simple, register_pair, alias_simple, alias_pair, remove_simple, remove_pair, set_debug, errno
Paul Seamons <paul@seamons.com>
This module may be distributed under the same terms as Perl itself.