README
1NAME
2 Template::Plugin::Clickable - Make URLs clickable in HTML
3
4SYNOPSIS
5 [% USE Clickable %]
6 [% FILTER clickable %]
7 URL is http://www.tt2.org/
8 [% END %]
9
10 this will become:
11
12 URL is <a href="http://www.tt2.org/">http://www.tt2.org/</a>
13
14DESCRIPTION
15 Template::Plugin::Clickable is a plugin for TT, which allows you to
16 filter HTMLs clickable.
17
18OPTIONS
19 target
20 [% FILTER clickable target => '_blank' %]
21 [% message.body | html %]
22 [% END %]
23
24 "target" option enables you to set target attribute in A links. none
25 by default.
26
27 finder_class
28 "finder_class" option enables you to set other URI finder class
29 rather than URI::Find (default). For example,
30
31 [% FILTER clickable finder_class => 'URU::Find::Schemeless' %]
32 Visit www.example.com/join right now!
33 [% END %]
34
35 this will become:
36
37 Visit <a href="http://www.example.com/join">www.example.com/join</a> right now!
38
39NOTE
40 If you use this module with "html" filter, you should set this
41 "clickable" module after the "html" filter. Otherwise links will be also
42 escaped and thus broken.
43
44AUTHOR
45 Tatsuhiko Miyagawa <miyagawa@bulknews.net>
46
47 This library is free software; you can redistribute it and/or modify it
48 under the same terms as Perl itself.
49
50SEE ALSO
51 Template, URI::Find
52
53