Renee Baecker > HTML-Template-Compiled-Plugins-RENEEB-0.01 > HTML::Template::Compiled::Plugin::Sprintf

Download:
HTML-Template-Compiled-Plugins-RENEEB-0.01.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.01   Source   Latest Release: HTML-Template-Compiled-Plugins-RENEEB-0.02

NAME ^

HTML::Template::Compiled::Plugin::Sprintf - Use sprintf in HTML::Template::Compiled templates

VERSION ^

version 0.01

SYNOPSIS ^

  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;

DESCRIPTION ^

Sometimes, you need formatted text (e.g. in mails) and you want to use sprintf. This module provides 30 sprintf formatters for templates.

ESCAPES ^

SPRINTF_8_RIGHT
SPRINTF_6_RIGHT
SPRINTF_20_LEFT

AUTHOR AND LICENSE ^

Copyright 2012 Renee Baecker <module@renee-baecker.de>

License: Artistic License 2.0

AUTHOR ^

Renee Baecker <module@renee-baecker.de>

COPYRIGHT AND LICENSE ^

This software is Copyright (c) 2012 by Renee Baecker.

This is free software, licensed under:

  The Artistic License 2.0 (GPL Compatible)
syntax highlighting: