Template::Plugin::Format - Plugin to create formatting functions


Template-Toolkit documentation  | view source Contained in the Template-Toolkit distribution.

Index


NAME

Top

Template::Plugin::Format - Plugin to create formatting functions

SYNOPSIS

Top

    [% USE format %]
    [% commented = format('# %s') %]
    [% commented('The cat sat on the mat') %]

    [% USE bold = format('<b>%s</b>') %]
    [% bold('Hello') %]

DESCRIPTION

Top

The format plugin constructs sub-routines which format text according to a printf()-like format string.

AUTHOR

Top

Andy Wardley <abw@wardley.org> http://wardley.org/

COPYRIGHT

Top

SEE ALSO

Top

Template::Plugin


Template-Toolkit documentation  | view source Contained in the Template-Toolkit distribution.