Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

template::plugin::textile2(3pm) [debian man page]

Template::Plugin::Textile2(3pm) 			User Contributed Perl Documentation			   Template::Plugin::Textile2(3pm)

NAME
Template::Plugin::Textile2 - Use Textile formatting with Template Toolkit SYNOPSIS
[% USE Textile2 -%] [% FILTER textile2 %]This *bold* and this is _italic_.[% END %] <p>this is <strong>bold</strong> and this is <em>italic</em>. [% USE Textile2 ( disable_html => 1 ) -%] [% FILTER textile2 %]this is<br /> _italic_.[% END %] <p>this is&lt;br /&gt; <em>italic</em>.</p> DESCRIPTION
This module wraps Text::Textile into a plugin Template Toolkit. It provides a filter named "textile2". This aims to be a more feature- full version Template::Plugin::Textile, by allowing you to pass parameters to Text::Textile. Use this way: [% FILTER textile2 %] Reasons to use the Template Toolkit: * Seperation of concerns. * It's written in Perl. * Badgers are Still Cool. [% END %] or: [% mytext | textile2 %] You can pass the same options you would pass to Text::Textile, directly when using the template. For instance to disable processing of HTML tags you can do: [% USE Textile2 ( disable_html => 1 ) %] To avoid your text to be wrapped into "&lt;p&gt...&lt;/p&gt" you can use: [% USE Textile2 ( format_mode => 'inline' ) %] See Text::Textile for details. AUTHOR
Michele Beltrame "mb@italpro.net". LICENSE
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. SEE ALSO
Text::Textile, Template perl v5.8.8 2007-09-13 Template::Plugin::Textile2(3pm)

Check Out this Related Man Page

Template::Plugin::Clickable(3pm)			User Contributed Perl Documentation			  Template::Plugin::Clickable(3pm)

NAME
Template::Plugin::Clickable - Make URLs clickable in HTML SYNOPSIS
[% USE Clickable %] [% FILTER clickable %] URL is http://www.tt2.org/ [% END %] this will become: URL is <a href="http://www.tt2.org/">http://www.tt2.org/</a> DESCRIPTION
Template::Plugin::Clickable is a plugin for TT, which allows you to filter HTMLs clickable. OPTIONS
target [% FILTER clickable target => '_blank' %] [% message.body | html %] [% END %] "target" option enables you to set target attribute in A links. none by default. finder_class "finder_class" option enables you to set other URI finder class rather than URI::Find (default). For example, [% FILTER clickable finder_class => 'URI::Find::Schemeless' %] Visit www.example.com/join right now! [% END %] this will become: Visit <a href="http://www.example.com/join">www.example.com/join</a> right now! NOTE
If you use this module with "html" filter, you should be careful not to break tags or brackets around the URLs. For example if you have a following URL form, <http://www.example.com/> Clickable plugin will filter this into: <a href="http://www.example.com/"><http://www.example.com/></a> which is bad for HTML viewing. However, if you HTML filter them first and then clickable filter, you'll get: &lt;<a href="http://www.example.com/&gt">http://www.example.com/&gt</a>; which href part is wrong. You'd better try Template::Plugin::TagRescue in this case. [% USE Clickable -%] [% USE TagRescue -%] [% FILTER html_except_for('a') -%] [% FILTER clickable -%] <http://www.example.com/> [%- END %] [%- END %] will give you the right format. AUTHOR
Tatsuhiko Miyagawa <miyagawa@bulknews.net> This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. SEE ALSO
Template, URI::Find, Template::Plugin::TagRescue perl v5.8.8 2006-11-23 Template::Plugin::Clickable(3pm)
Man Page