Template::Plugin::Format
Author: Andy Wardley

TT2 Home Page

- Modules
- Template::*
- Plugin::*
- Format.pm

Click to view the menu. It's very nice. Click to hide the menu and go all widescreen!
Back

#### Template::Plugin::Filter

Base class for plugin filters Up

#### Template::Plugin::* Modules

Next

#### Template::Plugin::HTML

Plugin to create HTML elements

# Template::Plugin::Format

## Plugin to create formatting functions

# Contents

Top

# 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

Copyright (C) 1996-2007 Andy Wardley. All Rights Reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

# SEE ALSO

Top

Template::Plugin

http://template-toolkit.org/docs/modules/Template/Plugin/Format.html