Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: Template Toolkit filtering all variables

by marvell (Pilgrim)
on Oct 13, 2005 at 11:58 UTC ( [id://499867]=note: print w/replies, xml ) Need Help??


in reply to Re: Template Toolkit filtering all variables
in thread Template Toolkit filtering all variables

I clearly missed the pipe bit in the manual. Can you double pipe, to html and html_para, say?

--
Steve Marvell

  • Comment on Re^2: Template Toolkit filtering all variables

Replies are listed 'Best First'.
Re^3: Template Toolkit filtering all variables
by merlyn (Sage) on Oct 13, 2005 at 12:02 UTC
    I clearly missed the pipe bit in the manual.
    That's at Template::Manual::Directives, under FILTER.
    Can you double pipe, to html and html_para, say?
    That wouldn't make sense, because once you've inserted the P tags, you'll end up escaping the angle brackets. Ouch. But yes, you can double pipe for things like filename to href params versus filename to html:
    <a href = "[% filename | uri | html %]">[% filename | html %]</a>

    -- Randal L. Schwartz, Perl hacker
    Be sure to read my standard disclaimer if this is a reply.

      Piping to html then html_para makes sense though?

      --
      Steve Marvell

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://499867]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2024-04-19 01:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found