NAME
Egg::View::Template::Ex - An arbitrary code is moved in the template.
SYNOPSIS
This is a setting example.
VIEW=> [
[ 'Template::Ex'=> {
path=> [qw( /path/to/root /path/to/comp )],
... etc.
} ],
],
* Example of template.
<tmpl_include name="html_header.tmpl">
<tmpl_include name="banner_head.tmpl">
<tmpl_include name="side_menu.tmpl">
<div id="content">
- Your request path: <tmpl_var name="request_path" escape="html" %><hr>
- Your IP address: <tmpl_var name="remote_addr" escape="html" %><hr>
- Test Array:
<tmpl_ex>
my($e, $tmpl_param)= @_;
my $disp;
for my $hash (
{ name=> 'foo', value=> 'foofoofoo' },
{ name=> 'baa', value=> 'baabaabaa' },
{ name=> 'baa', value=> 'baabaabaa' },
) {
$disp.= "[ ". $e->escape_html($hash->{name})
. " = ". $e->escape_html($hash->{value}). "]\n";
}
return $disp;
</tmpl_ex>
</div>
<tmpl_include name="html_footer.tmpl">
DESCRIPTION
It suffers from a very troublesome thing though it is a module appended in circumstances.
Even if the error occurs, what has happened cannot be understood.
It risks it. HTML::Template::Ex does very high-speed operation in the template engine that evaluates the code.
Please try crazy once.
SEE ALSO
Egg::Release, Egg::View::Template, HTML::Template::Ex,
AUTHOR
Masatoshi Mizuno, <mizuno@bomcity.com>
COPYRIGHT AND LICENSE
Copyright (C) 2006 Bee Flag, Corp. <http://egg.bomcity.com/>, All Rights Reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.6 or, at your option, any later version of Perl 5 you may have available.