root/Inline-TT/trunk/README

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 NAME
2     Inline::TT - use TT BLOCK as your Perl sub
3
4 SYNOPSIS
5       use Inline 'TT';
6
7       $calc = add(args => [ 0, 1 ]);                      # 2
8       $jarh = 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 aloow you to code your Perl subs in TT.
30
31 AUTHOR
32     Tatsuhiko Miyagawa <miyagawa@bulknews.net>
33
34     This library is free software; you can redistribute it and/or modify it
35     under the same terms as Perl itself.
36
37 SEE ALSO
38     the Template manpage, the Inline manpage
39
Note: See TracBrowser for help on using the browser.