| 1 |
NAME |
| 2 |
|
| 3 |
HTML::Template::Plugin::Dot::Helpers - Add useful objects to your |
| 4 |
templates |
| 5 |
|
| 6 |
SYNOPSIS |
| 7 |
|
| 8 |
use HTML::Template::Plugin::Dot::Helpers; |
| 9 |
|
| 10 |
Then in your template, you can do: |
| 11 |
|
| 12 |
<tmpl_var Number.format_currency(orderitem.price)> |
| 13 |
|
| 14 |
|
| 15 |
DESCRIPTION |
| 16 |
|
| 17 |
This helper class adds some useful objects to your Dot-enabled |
| 18 |
templates (see HTML::Template::Plugin::Dot). |
| 19 |
|
| 20 |
Added objects |
| 21 |
|
| 22 |
Number |
| 23 |
|
| 24 |
An extended Number::Format object. See Number::Format for |
| 25 |
documentation. Note that only the object oriented methods are |
| 26 |
supported here. |
| 27 |
|
| 28 |
I've added several generic numerical methods. Most (well, all in this |
| 29 |
release) are boolean methods, useful in <tmpl_if>s. They are: |
| 30 |
|
| 31 |
equals - test whether two numbers are equal (==) |
| 32 |
|
| 33 |
le, lt, ge, gt - test how two numbers compare |
| 34 |
|
| 35 |
(implemented with <=, <, >=, > respectively) |
| 36 |
|
| 37 |
The following is not yet implemented. |
| 38 |
|
| 39 |
String |
| 40 |
|
| 41 |
Adds generic string testing functions similar to the above: |
| 42 |
|
| 43 |
equals - test whether two strings are equal (eq) |
| 44 |
|
| 45 |
le, lt, ge, gt - test how two strings compare lexically |
| 46 |
|
| 47 |
AUTHOR |
| 48 |
|
| 49 |
Rhesa Rozendaal, <[email protected]> |
| 50 |
|
| 51 |
BUGS |
| 52 |
|
| 53 |
Please report any bugs or feature requests to |
| 54 |
[email protected], or through the web |
| 55 |
interface at |
| 56 |
http://rt.cpan.org/NoAuth/ReportBug.html?Queue=HTML-Template-Plugin-Dot-Helpers. |
| 57 |
I will be notified, and then you'll automatically be notified of |
| 58 |
progress on your bug as I make changes. |
| 59 |
|
| 60 |
ACKNOWLEDGEMENTS |
| 61 |
|
| 62 |
COPYRIGHT & LICENSE |
| 63 |
|
| 64 |
Copyright 2005 Rhesa Rozendaal, all rights reserved. |
| 65 |
|
| 66 |
This program is free software; you can redistribute it and/or modify it |
| 67 |
under the same terms as Perl itself. |
| 68 |
|