Template::Semantic::Filter - Template::Semantic Defined filters
$ts->process($template, { 'h1' => [ "foo\n", 'chomp' ], # => <h1>foo</h1> })
$ts->process($template, { 'h1' => [ " foo ", 'trim' ], # => <h1>foo</h1> })
$ts->process($template, { 'h1@class' => [ "zzz xxx yyy", 'sort' ], # => <h1 class="xxx yyy zzz">foo</h1> })
$ts->process($template, { 'h1@chass' => [ "foo bar foo", 'uniq' ], # => <h1 class="foo bar">foo</h1> })
$ts->process($template, { 'h1' => [ "10000", 'comma' ], # => <h1>10,000</h1> })
codes from: Template::Plugin::Comma.
$ts->process($template, { 'p' => [ "foo & foo\nbar\n", 'html_line_break' ], # => # <p>foo & foo<br /> # bar <br /></p> })
codes from: Template::Filters::html_line_break().
::html_line_break()
Template::Semantic
Naoki Tomita <tomita@cpan.org>
To install Template::Semantic, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Template::Semantic
CPAN shell
perl -MCPAN -e shell install Template::Semantic
For more information on module installation, please visit the detailed CPAN module installation guide.