|
|
| |
Template::Semantic::Filter(3) |
User Contributed Perl Documentation |
Template::Semantic::Filter(3) |
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()".
Naoki Tomita <tomita@cpan.org>
Visit the GSP FreeBSD Man Page Interface. Output converted with ManDoc. |