[Templates] into(varname)

Andy Wardley abw@cre.canon.co.uk
Thu, 17 Aug 2000 11:30:19 +0100 (BST)


> What happened to the into filter?  Is there some easy way to do this
> now in TT2 without a special filter?

You can now just assign the output of a block to a variable.

V1:  [% INCLUDE foo FILTER into('x') %]
V2:  [% x = INCLUDE foo %]

V1: [% FILTER into('y') %]
    blah blah blah
    [% END %]

V2: [% y = BLOCK %]
    blah blah blah
    [% END %]

This was something that should be documented in the 'gotchas', but 
unfortunately wasn't.


A