Template::Plugin::Comma(3pm)

Template::Plugin::Comma3pm

Tt plugin to commify numbers

Usage

  [% USE Comma %]
  [% FILTER comma -%]
  This item costs 10000 dollar.
  [%- END %]
  # Output:
  # This item costs 10,000 dollar.
  This item costs [% item.price | comma %] dollar.
  # Output:
  # This item costs 10,000 dollar.

Overview

Template::Plugin::Comma is a plugin for TT, which allows you to commify your numbers in templates. This would be especially useful for prices.

Note

This module does nothing for I18N. If you want it, try Template::Plugin::Number::Format.

Releases

7 releases since Debian 7 (Wheezy); the text changed 1 time.

  1. 7–10
  2. 11–13

Author

Original idea by Yoshiki Kurihara <[email protected]>

TT plugin implemented by Tatsuhiko Miyagawa <[email protected]>

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

From libtemplate-plugin-comma-perl 0.04-1.1 in Debian 13 (Trixie). Parsed by carta from the page's man source.