HTML::Template::Compiled::Plugin::Comma - HTC Plugin to commify numbers


HTML-Template-Compiled-Plugin-Comma documentation  | view source Contained in the HTML-Template-Compiled-Plugin-Comma distribution.

Index


NAME

Top

HTML::Template::Compiled::Plugin::Comma - HTC Plugin to commify numbers

SYNOPSIS

Top

  use HTML::Template::Compiled::Plugin::Comma;
  my $htc = HTML::Template::Compiled->new(
      plugin => [qw(HTML::Template::Compiled::Plugin::Comma)],
      ...
  );
  $htc->param( costs => 10000 );
  $htc->output;
  ---

      This item costs <TMPL_VAR costs ESCAPE=COMMA> dollar.

      # Output:
      # This item costs 10,000 dollar.

DESCRIPTION

Top

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

METHODS

Top

register gets called by HTC

SEE ALSO

Top

HTML::Template::Compiled, "perldoc -q comma"

AUTHOR

Top

hagy

COPYRIGHT AND LICENSE

Top


HTML-Template-Compiled-Plugin-Comma documentation  | view source Contained in the HTML-Template-Compiled-Plugin-Comma distribution.