|
NAMETemplate::Plugin::Clickable - Make URLs clickable in HTMLSYNOPSIS[% 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> DESCRIPTIONTemplate::Plugin::Clickable is a plugin for TT, which allows you to filter HTMLs clickable.OPTIONS
NOTEIf 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: <<a href="http://www.example.com/>">http://www.example.com/></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. AUTHORTatsuhiko 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 ALSOTemplate, URI::Find, Template::Plugin::TagRescue
Visit the GSP FreeBSD Man Page Interface. |