| Template-Plugin-Textile documentation | Contained in the Template-Plugin-Textile distribution. |
Template::Plugin::Textile - textile plugin for the Template Toolkit
[% USE Textile -%] [% FILTER textile %]this is _like_ *so* *cool*[% END %] <p>this is <em>like</em> <strong>so* *cool</strong></p>
This is a very thin wrapper around Text::Textile for the Template
Toolkit. When you load the plugin, it creates a filter called textile
that you can use in the normal way
[% text = BLOCK -%] The "Template Toolkit":http://www.tt2.org was written by Andy Wardly. !http://www.perl.com/supersnail/os2002/images/small/os6_d5_5268_w2_sm.jpg! This image (c) Julian Cash 2002 [%- END %] [% text | textile %]
Or
[% FILTER textile %] Reasons to use the Template Toolkit: * Seperation of concerns. * It's written in Perl. * Badgers are Still Cool. [% END %]
None known (it's only ten lines of code.)
Bugs (and requests for new features) can be reported to the open source development team at Profero though the CPAN RT system: <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Template-Plugin-Textile>
The thin wrapper code (all ten lines of it) was written by Mark Fowler <mark@twoshortplanks.com>.
The Text::Textile module that does all the work was written by Tom Insam <tom@jerakeen.org>, and in his own words 'All the clever things in Text::Textile were written by Brad Choate <http://www.bradchoate.com>'
Copyright Profero 2003. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
| Template-Plugin-Textile documentation | Contained in the Template-Plugin-Textile distribution. |
package Template::Plugin::Textile; use strict; #use warnings; use vars qw($VERSION); $VERSION = "1.01"; use Text::Textile; sub load { return $_[0] } sub new { return bless {}, $_[0] } $Template::Filters::FILTERS->{textile} = sub { Text::Textile::textile($_[0]) }; 1; __END__