The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Template::Plugin::Lingua::EN::Fractions - TT2 interface to Lingua::EN::Fractions module

SYNOPSIS

  [% USE Lingua.EN.Fractions -%]
  [% checksum = content FILTER fraction2words -%]
  [% checksum = content.fraction2words -%]

DESCRIPTION

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").

SEE ALSO

Lingua::EN::Fractions, Template, Template::Plugin

AUTHOR

  Barbie <barbie@cpan.org>  2014

ACKNOWLEDGEMENTS

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 & LICENSE

Copyright (C) 2014 Barbie for Miss Barbell Productions.

This distribution is free software; you can redistribute it and/or modify it under the Artistic Licence v2.