Template::Alloy::Tmpl man page on Fedora

Man page or keyword search:  
man Server   31170 pages
apropos Keyword Search (all sections)
Output format
Fedora logo
[printable version]

Template::Alloy::Tmpl(User Contributed Perl DocumentatTemplate::Alloy::Tmpl(3)

NAME
       Template::Alloy::Tmpl - Text::Tmpl role

DESCRIPTION
       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.

ROLE_METHODS
       "parse_tree_tmpl"
	   Called by parse_tree when syntax is set to tmpl.  Parses for tags
	   Text::Tmpl style.

       "set_delimiters"
	   Sets the START_TAG and END_TAG to use for parsing.

	       $obj->set_delimiters('#[', ']#');

       "strerror"
	   Can be used for checking the error when compile fails (or you can
	   use ->error).  May be called as function or method (Text::Tmpl only
	   allows as function).

       "set_strip"
	   Determines if trailing whitespace on same line is removed.  Default
	   is false.

       "set_dir"
	   Sets the path to look for included templates in.

       "set_value"
	   Sets a single value that will be used during processing of the
	   template.

	       $obj->set_value(key => $value);

       "set_values"
	   Sets multiple values for use during processing.

	       $obj->set_values(\%values);

       "parse_string"
	   Processes the passed string.

	       my $out = $obj->process_string("#[echo $foo]#");

       "parse_file"
	   Processes the passed filename.

	       my $out = $obj->process_file("my/file.tmpl");

       "loop_iteration"
	   Same as the Text::Tmpl method - used for adding iterations to a
	   loop.

	       my $ref = $obj->loop_iteration('loop1'); # creates iteration 0
	       $ref->set_values($hash);

       "fetch_loop_iteration"
	   Gets a previously created loop iteration.

	       my $ref = $obj->fetch_loop_iteration('loop1', 0);
	       $ref->set_values($hash);

UNSUPPORTED Text::Tmpl METHODS
       register_simple, register_pair, alias_simple, alias_pair,
       remove_simple, remove_pair, set_debug, errno

AUTHOR
       Paul Seamons <paul at seamons dot com>

LICENSE
       This module may be distributed under the same terms as Perl itself.

perl v5.14.1			  2007-09-20	      Template::Alloy::Tmpl(3)
[top]

List of man pages available for Fedora

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net