File: README

package info (click to toggle)
libtemplate-plugin-posix-perl 0.05-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 252 kB
  • sloc: perl: 4,083; makefile: 2
file content (67 lines) | stat: -rw-r--r-- 1,848 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
NAME
    Template::Plugin::POSIX - TT2 plugin to import POSIX functions

VERSION
    This document describes Template::Plugin::POSIX 0.05 released on 12
    March, 2007.

SYNOPSIS
      [% USE POSIX %]

      [% POSIX.log(100) %]
      [% POSIX.rand(1) %]
      [% POSIX.exp(2) %]
      [% POSIX.sprintf("%.0f", 3.5) %]
      [% POSIX.pow(2, 3) %]
      [% POSIX.ceil(3.8) %]
      [% POSIX.floor(3.8) %]
      [% POSIX.sin(3.14) %]
      [% POSIX.cos(0) %]

DESCRIPTION
    As a TT programmer, I found it quite inflexible to use the Template
    Toolkit's presentation language Language due to the very limited
    vocabulary. So I wrote this little plugin in order to open a window for
    the template file to the full richness of most POSIX functions, making
    the Template language a "programming language" in a much more serious
    sense.

    Please keep in mind I just used AUTOLOAD, eval, and Data::Dumper to do
    the magic here.

    If you're looking for even more functions, I suggest you take a look at
    the Template::Plugin::Perl module which exports the excellent POSIX
    repertoire.

METHODS
    "new"
        Constructor called by the TT2 template system

    "throw"
        TT2 exception handling procedure.

TODO
    *   Add more unit tests.

SOURCE CONTROL
    You can always get the latest version of the source code from the follow
    Subversion repository:

    <http://svn.openfoundry.org/ttposix>

    There is anonymous access to all.

    If you'd like a commit bit, please let me know :)

AUTHOR
    Agent Zhang, <agentzh@gmail.com>

COPYRIGHT AND LICENSE
    Copyright (c) 2005, 2006, 2007 by Agent Zhang. All rights reserved.

    This library is free software; you can redistribute it and/or modify it
    under the same terms as Perl itself.

SEE ALSO
    Template, Template::Plugin::Perl, Data::Dumper