root/Inline-TT/trunk/t/02_rubyish.t

Revision 612 (checked in by miyagawa, 18 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 Test::More 'no_plan';
3
4 use Inline 'TT';
5
6 is rubyish(str => "Just another Perl hacker"), "Just/another/Ruby/hacker";
7
8 __END__
9 __TT__
10 [% BLOCK rubyish -%]
11 [% strings = str.split(' ')
12    strings.2 = "Ruby" %]
13 [% strings.join('/') %]
14 [%- END %]
Note: See TracBrowser for help on using the browser.