[%# # IMPORTANT NOTE # This documentation is generated automatically from source # templates. Any changes you make here may be lost. # # The 'docsrc' documentation source bundle is available for download # from http://www.template-toolkit.org/docs.html and contains all # the source templates, XML files, scripts, etc., from which the # documentation for the Template Toolkit is built. -%] [% META book = 'Modules' page = 'Plugin_Math' %] [% WRAPPER toc; PROCESS tocitem title ="SYNOPSIS" subs = []; PROCESS tocitem title ="DESCRIPTION" subs = []; PROCESS tocitem title ="METHODS" subs = []; PROCESS tocitem title ="AUTHOR" subs = []; PROCESS tocitem title ="VERSION" subs = []; PROCESS tocitem title ="COPYRIGHT" subs = []; PROCESS tocitem title ="SEE ALSO" subs = []; END %] [% WRAPPER section title="SYNOPSIS" -%]
[% tt_start_tag %] USE Math [% tt_end_tag %]
[% tt_start_tag %] Math.sqrt(9) [% tt_end_tag %][%- END %] [% WRAPPER section title="DESCRIPTION" -%]
The Math plugin provides numerous mathematical functions for use within templates.
[%- END %] [% WRAPPER section title="METHODS" -%]Template::Plugin::Math makes available the following functions from the Perl core:
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:
[% tt_start_tag %] Math.truly_random_number [% tt_end_tag %][%- END %] [% WRAPPER section title="AUTHOR" -%]
Andy Wardley <abw@andywardley.com>
[% ttlink('http://www.andywardley.com/', 'http://www.andywardley.com/') -%]
[%- END %] [% WRAPPER section title="VERSION" -%]1.11, distributed as part of the Template Toolkit version 2.14, released on 04 October 2004.
[%- END %] [% WRAPPER section title="COPYRIGHT" -%]Copyright (C) 1996-2004 Andy Wardley. All Rights Reserved. Copyright (C) 1998-2002 Canon Research Centre Europe Ltd.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
[%- END %] [% WRAPPER section title="SEE ALSO" -%][% ttlink('Template::Plugin', 'Template::Plugin') -%]
[%- END %]