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