root/Template-Plugin-Comma/trunk/README

Revision 690 (checked in by miyagawa, 18 years ago)

Initial revision

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
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 <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
31 SEE ALSO
32     the Template manpage, "perldoc -q comma"
33
Note: See TracBrowser for help on using the browser.