README
1NAME
2 Template::Plugin::Comma - TT Plugin to commify numbers
3
4SYNOPSIS
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
19DESCRIPTION
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
23AUTHOR
24 Original idea by Yoshiki Kurihara <kurihara@cpan.org>
25
26 TT plugin implemented by Tatsuhiko Miyagawa <miyagawa@bulknews.net>
27
28 This library is free software; you can redistribute it and/or modify it
29 under the same terms as Perl itself.
30
31SEE ALSO
32 the Template manpage, "perldoc -q comma"
33
34