NAME
Egg::View::Template::GlobalParam? - General parameter for template.
SYNOPSIS
use base qw/ Egg::View /;
use Egg::View::Template::GlobalParam;
sub new {
my $view= shift->SUPER::new(@_);
$view->params({ Egg::View::Template::GlobalParam->set($view->e) });
}
DESCRIPTION
For global parameter setting for template.
A global original parameter can be added from the controller etc. by setting %param.
use Egg::View::Template::GlobalParam;
%Egg::View::Template::GlobalParam::param= (
hoge => 'booo',
zuuu => sub { 'banban' },
);
METHODS
set ([PROJECT_CONTEXT])
The content of the set parameter is returned.
SEE ALSO
Egg::Release, Egg::View, Egg::View::Mason, Egg::View::HT,
AUTHOR
Masatoshi Mizuno <lushe@cpan.org>
COPYRIGHT AND LICENSE
Copyright (C) 2008 Bee Flag, Corp. <http://egg.bomcity.com/>.
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.