root/Inline-TT/trunk/README

Revision 616 (checked in by miyagawa, 18 years ago)

0.01

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1 NAME
2     Inline::TT - use TT BLOCK as your Perl sub
3
4 SYNOPSIS
5       use Inline 'TT';
6
7       print add(args => [ 0, 1 ]);                      # 1
8       print rubyish(str => "Just another Perl Hacker"); # "Just/another/Ruby/hacker"
9
10       __END__
11       __TT__
12       [% BLOCK add %]
13       [% result = 0 %]
14       [% FOREACH arg = args %]
15         [% result = result + arg %]
16       [% END %]
17       [% result %]
18       [% END %]
19
20       [% BLOCK rubyish %]
21       [% strings = str.split(' ')
22          strings.2 = "Ruby"
23       %]
24       [% strings.join('/') %]
25       [% END %]
26
27 DESCRIPTION
28     Template-Toolkit is not just a Templating Engine. It's a language. Yep,
29     Inline::TT is a Inline plugin to allow you to code your Perl subs in TT.
30
31 AUTHOR
32     Original idea by IKEBE Tomohiro <ikechin@0xfa.com>
33
34     Code implemented by Tatsuhiko Miyagawa <miyagawa@bulknews.net>
35
36     This library is free software; you can redistribute it and/or modify it
37     under the same terms as Perl itself.
38
39 SEE ALSO
40     the Template manpage, the Inline manpage
41
Note: See TracBrowser for help on using the browser.