Template::Plugin::Math - Plugin providing mathematical functions
[% USE Math %] [% Math.sqrt(9) %]
The Math plugin provides numerous mathematical functions for use within templates.
Template::Plugin::Math makes available the following functions from the Perl core:
Template::Plugin::Math
In addition, if the Math::Trig module can be loaded, the following functions are also available:
If the Math::TrulyRandom module is available, and you've got the time to wait, the truly_random_number method is available:
truly_random_number
[% Math.truly_random_number %]
Andy Wardley <abw@wardley.org> http://wardley.org/
Copyright (C) 1996-2007 Andy Wardley. All Rights Reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Template::Plugin
To install Template::Toolkit, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Template::Toolkit
CPAN shell
perl -MCPAN -e shell install Template::Toolkit
For more information on module installation, please visit the detailed CPAN module installation guide.