![]() |
![]()
| ![]() |
![]()
NAMETemplate::Semantic::Filter - Template::Semantic Defined filters FILTERSchomp$ts->process($template, { 'h1' => [ "foo\n", 'chomp' ], # => <h1>foo</h1> }) trim$ts->process($template, { 'h1' => [ " foo ", 'trim' ], # => <h1>foo</h1> }) sort$ts->process($template, { 'h1@class' => [ "zzz xxx yyy", 'sort' ], # => <h1 class="xxx yyy zzz">foo</h1> }) uniq$ts->process($template, { 'h1@chass' => [ "foo bar foo", 'uniq' ], # => <h1 class="foo bar">foo</h1> }) comma$ts->process($template, { 'h1' => [ "10000", 'comma' ], # => <h1>10,000</h1> }) codes from: Template::Plugin::Comma. html_line_break$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(). SEE ALSOTemplate::Semantic AUTHORNaoki Tomita <tomita@cpan.org>
|