Template::Lace::Utils - Utility Methods
TBD
A collection of helpful utility methods
Make a callback component. See Template::Lace::ComponentCallback. Example:
use Template::Lace::Utils 'mk_component'; my $factory = Template::Lace::Factory->new( model_class=>'Local::Template::User', component_handlers=>+{ tag => { anchor => mk_component { my ($self, %attrs) = @_; return "<a href='$_{href}' target='$_{target}'>$_{content}</a>"; }, }, }, );
Template::Lace.
Please See Template::Lace for authorship and contributor information.
Please see Template::Lace for copyright and license information.
To install Template::Lace, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Template::Lace
CPAN shell
perl -MCPAN -e shell install Template::Lace
For more information on module installation, please visit the detailed CPAN module installation guide.