Egg::View::Template - HTML::Template is used for View of Egg.
This is a setting example.
VIEW=> [ [ Template=> { path=> [qw( /path/to/root /path/to/comp )], cache=> 1, global_vars=> 1, die_on_bad_params=> 0, ... etc. } ], ], # Associate is set. The object with 'param' method. $e->view->push_associate( $e->o ); # Filter is set. $e->view->push_filter( ...filter code. );
When you want to use it individually.
my $mbody= $e->view->render('mail-body.tmpl', { foo=> 'baa' }); sendmail->method('toaddr@domain', 'subject', $mbody);
The option that can be specified for HTML::Template
- strict - global_vars - cache - shared_cache - double_cache - blind_cache - die_on_bad_params - vanguard_compatibility_mode ... etc.
Please see the document of HTML::Template in detail.
The parameter of default is taken from Egg::View::Template::Params.
Please treat %Egg::View::PARAMS when you want to set a fixed parameter arbitrarily.
Please see Egg::View in detail.
Object that becomes a hint to bury the value under the template is set. Set object should have the param method.
Filter that processes the template beforehand is set. Please see the document of HT about the filter that can be set and the code.
Set and refer to the parameter passed to HTML::Template.
The HASH reference of parameter is returned.
HTML::Template, Egg::View, Egg::View::Template::Params, Egg::Release,
Masatoshi Mizuno, <mizuno@bomcity.com>
Copyright (C) 2007 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.
To install Egg::Release, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Egg::Release
CPAN shell
perl -MCPAN -e shell install Egg::Release
For more information on module installation, please visit the detailed CPAN module installation guide.