Debian Codegraph @

README

raw
1 NAME
2 Template::Plugin::POSIX - TT2 plugin to import POSIX functions
3
4 VERSION
5 This document describes Template::Plugin::POSIX 0.05 released on 12
6 March, 2007.
7
8 SYNOPSIS
9 [% USE POSIX %]
10
11 [% POSIX.log(100) %]
12 [% POSIX.rand(1) %]
13 [% POSIX.exp(2) %]
14 [% POSIX.sprintf("%.0f", 3.5) %]
15 [% POSIX.pow(2, 3) %]
16 [% POSIX.ceil(3.8) %]
17 [% POSIX.floor(3.8) %]
18 [% POSIX.sin(3.14) %]
19 [% POSIX.cos(0) %]
20
21 DESCRIPTION
22 As a TT programmer, I found it quite inflexible to use the Template
23 Toolkit's presentation language Language due to the very limited
24 vocabulary. So I wrote this little plugin in order to open a window for
25 the template file to the full richness of most POSIX functions, making
26 the Template language a "programming language" in a much more serious
27 sense.
28
29 Please keep in mind I just used AUTOLOAD, eval, and Data::Dumper to do
30 the magic here.
31
32 If you're looking for even more functions, I suggest you take a look at
33 the Template::Plugin::Perl module which exports the excellent POSIX
34 repertoire.
35
36 METHODS
37 "new"
38 Constructor called by the TT2 template system
39
40 "throw"
41 TT2 exception handling procedure.
42
43 TODO
44 * Add more unit tests.
45
46 SOURCE CONTROL
47 You can always get the latest version of the source code from the follow
48 Subversion repository:
49
50 <http://svn.openfoundry.org/ttposix>
51
52 There is anonymous access to all.
53
54 If you'd like a commit bit, please let me know :)
55
56 AUTHOR
57 Agent Zhang, <[email protected]>
58
59 COPYRIGHT AND LICENSE
60 Copyright (c) 2005, 2006, 2007 by Agent Zhang. All rights reserved.
61
62 This library is free software; you can redistribute it and/or modify it
63 under the same terms as Perl itself.
64
65 SEE ALSO
66 Template, Template::Plugin::Perl, Data::Dumper
67