| 1 |
NAME |
| 2 |
Template::Plugin::Comma - TT Plugin to commify numbers |
| 3 |
|
| 4 |
SYNOPSIS |
| 5 |
[% USE Comma %] |
| 6 |
|
| 7 |
[% FILTER comma -%] |
| 8 |
This item costs 10000 dollar. |
| 9 |
[%- END %] |
| 10 |
|
| 11 |
# Output: |
| 12 |
# This item costs 10,000 dollar. |
| 13 |
|
| 14 |
This item costs [% item.price | comma %] dollar. |
| 15 |
|
| 16 |
# Output: |
| 17 |
# This item costs 10,000 dollar. |
| 18 |
|
| 19 |
DESCRIPTION |
| 20 |
Template::Plugin::Comma is a plugin for TT, which allows you to commify |
| 21 |
your numbers in templates. This would be especially useful for prices. |
| 22 |
|
| 23 |
AUTHOR |
| 24 |
Original idea by Yoshiki Kurihara <[email protected]> |
| 25 |
|
| 26 |
TT plugin implemented by Tatsuhiko Miyagawa <[email protected]> |
| 27 |
|
| 28 |
This library is free software; you can redistribute it and/or modify it |
| 29 |
under the same terms as Perl itself. |
| 30 |
|
| 31 |
SEE ALSO |
| 32 |
the Template manpage, "perldoc -q comma" |
| 33 |
|