Template::Plugin::Lingua::EN::Fractions - TT2 interface to Lingua::EN::Fractions module
[% USE Lingua.EN.Fractions -%] [% checksum = content FILTER fraction2words -%] [% checksum = content.fraction2words -%]
The Lingua::EN::Fractions Template Toolkit plugin provides access to the Lingua::EN::Fractions module functions, to translate number values to their names.
When you invoke
[% USE Lingua.EN.Fractions %]
the following filters (and vmethods of the same name) are installed into the current context:
fraction2words
Converts a fraction (such as 3/4) into English text (such as "three quarters").
Lingua::EN::Fractions, Template, Template::Plugin
Template::Plugin
Barbie <barbie@cpan.org> 2014
Andrew Ford for writing Template::Plugin::Lingua::EN::Inflect, which inspired this module.
Neil Bowers for creating Lingua::EN::Fractions, and giving me the idea to add another distribution to my new Template Toolkit plugins collection, which I've recently taken over from Andrew Ford.
Copyright (C) 2014-2015 Barbie for Miss Barbell Productions.
This distribution is free software; you can redistribute it and/or modify it under the Artistic Licence v2.
To install Template::Plugin::Lingua::EN::Fractions, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Template::Plugin::Lingua::EN::Fractions
CPAN shell
perl -MCPAN -e shell install Template::Plugin::Lingua::EN::Fractions
For more information on module installation, please visit the detailed CPAN module installation guide.