HTML::Template::Plugin::Dot::Helpers - Add useful objects to your templates
version 0.06
use HTML::Template::Plugin::Dot::Helpers;
Then in your template, you can do:
<tmpl_var Number.format_currency(orderitem.price)>
This helper class adds some useful objects to your Dot-enabled templates (see HTML::Template::Plugin::Dot).
An extended Number::Format object. See Number::Format for documentation. Note that only the object oriented methods are supported here.
I've added several generic numerical methods. Most (well, all in this release) are boolean methods, useful in <tmpl_if>s. They are:
<tmpl_if>s
(implemented with <=, <, >=, > respectively)
The following is not yet implemented.
Adds generic string testing functions similar to the above:
Rhesa Rozendaal, <rhesa@cpan.org>
<rhesa@cpan.org>
Please report any bugs or feature requests to bug-html-template-plugin-dot-helpers@rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=HTML-Template-Plugin-Dot-Helpers. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-html-template-plugin-dot-helpers@rt.cpan.org
Copyright 2005 Rhesa Rozendaal, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install HTML::Template::Plugin::Dot::Helpers, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTML::Template::Plugin::Dot::Helpers
CPAN shell
perl -MCPAN -e shell install HTML::Template::Plugin::Dot::Helpers
For more information on module installation, please visit the detailed CPAN module installation guide.