Text::Smart::Plugin(3)User Contributed Perl DocumentatioText::Smart::Plugin(3)NAMEText::Smart::Plugin - Template Toolkit plugin for Text::Smart
SYNOPSIS
When creating the Template processing object define a plugin for smart
text:
my $tt = new Template({
PLUGINS => {
'smarttext' => 'Text::Smart::Plugin'
}
});
Then in a template file:
[% USE smarttext(type => 'HTML') %]
[% FILTER smarttext %]
... some smart text markup ...
[% END %]
DESCRIPTION
This module provides a plugin for the Template-Toolkit to enable the
use of 'smart text', whose syntax is defined by the Text::Smart module.
See that module's manual pages for details of the markup allowed. See
the synopsis section above for how to use this module in combination
with the Template toolkit.
METHODS
my $plugin = Text::Smart::Plugin->new()
This creates a new instance of the plugin. This method is called by
the Template Toolkit engine to instantiate the plugin. See the docs
for Template for details about the contract between the engine and
this plugin's constructor.
AUTHORS
Daniel Berrange <dan@berrange.com>
COPYRIGHT
Copyright (C) 2004-2006 Daniel P. Berrange <dan@berrange.com>
SEE ALSO
"perl", Text::Smart(1), Template(1)perl v5.14.1 2006-08-21 Text::Smart::Plugin(3)