GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  TEMPLATE::SEMANTIC::FILTER (3)

.ds Aq ’

NAME

Template::Semantic::Filter - Template::Semantic Defined filters

CONTENTS

FILTERS

    chomp



  $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 ALSO

Template::Semantic

AUTHOR

Naoki Tomita <tomita@cpan.org>
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 TEMPLATE::SEMANTIC::FILTER (3) 2010-02-22

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.