HTML::Template::Compiled::Plugin::Sprintf - Use sprintf in HTML::Template::Compiled templates
version 0.02
use HTML::Template::Compiled; my $template_sprintf_8 = '<%= test ESCAPE=SPRINTF_8_RIGHT %>'; my $text = 'hello'; my $tmpl = HTML::Template::Compiled->new( scalarref => \$template_sprintf_8, plugin => [ 'HTML::Template::Compiled::Plugin::Sprintf' ], ); $tmpl->param( test => $text ); my $output = $tmpl->output;
Sometimes, you need formatted text (e.g. in mails) and you want to use sprintf. This module provides 30 sprintf formatters for templates.
Renee Baecker <reneeb@cpan.org>
This software is Copyright (c) 2013 by Renee Baecker.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
To install HTML::Template::Compiled::Plugin::HTML2, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTML::Template::Compiled::Plugin::HTML2
CPAN shell
perl -MCPAN -e shell install HTML::Template::Compiled::Plugin::HTML2
For more information on module installation, please visit the detailed CPAN module installation guide.