root/Template-Plugin-Clickable/trunk/t/01_clickable.t

Revision 605 (checked in by miyagawa, 17 years ago)

Initial revision

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1 use strict;
2 use Template::Test;
3
4 test_expect(\*DATA);
5
6 __END__
7 --test--
8 [% USE Clickable -%]
9 [% FILTER clickable -%]
10 http://www.template-toolkit.org/
11 [%- END %]
12 --expect--
13 <a href="http://www.template-toolkit.org/">http://www.template-toolkit.org/</a>
14
15 --test--
16 [% USE Clickable -%]
17 [% FILTER clickable target => '_blank' -%]
18 http://www.template-toolkit.org/
19 http://www.template-toolkit.org/
20 [%- END %]
21 --expect--
22 <a href="http://www.template-toolkit.org/" target="_blank">http://www.template-toolkit.org/</a>
23 <a href="http://www.template-toolkit.org/" target="_blank">http://www.template-toolkit.org/</a>
Note: See TracBrowser for help on using the browser.