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

Why
[% CGI.h2("Greetings!") %] Hello, [% firstname | html %] [% lastname | html %]!
and not
<h2>Greetings!</h2> Hello, [% firstname | html %] [% lastname | html %]!
?

just curious,


holli, /regexed monk/

Replies are listed 'Best First'.
Re^3: Template Toolkit filtering all variables
by merlyn (Sage) on Oct 13, 2005 at 11:54 UTC
    I used h2 with a literal as a quick example. Most often, I'm using CGI calls for (sticky) form fields, but when I was thinking about that for this problem, I decided that it would detract from the point I was making.

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