Rechercher une page de manuel
HTML::Template::Compiled::Formatter.3pm
Langue: en
Version: 2008-11-03 (debian - 07/07/09)
Section: 3 (Bibliothèques de fonctions)
NAME
HTML::Template::Compiled::Formatter - HTC subclass for using a formatterSYNOPSIS
my $formatter = { 'HTC::Class1' => { fullname => sub { $_[0]->first . ' ' . $_[0]->last }, first => HTC::Class1->can('first'), last => HTC::Class1->can('last'), }, }; my $htc = HTML::Template::Compiled::Formatter->new( path => 't/templates', filename => 'formatter.htc', debug => 0, ); my $obj = bless ({ first => 'Abi', last => 'Gail'}, 'HTC::Class1'); $htc->param( test => 23, obj => $obj, ); local $HTML::Template::Compiled::Formatter::formatter = $formatter; my $out = $htc->output;
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre