Masatoshi Mizuno > Egg-Release-3.14 > Egg::View::Template::GlobalParam

Download:
Egg-Release-3.14.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Module Version: 3.00   Source  

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.

syntax highlighting: