On Fri, Mar 20, 2009 at 7:29 PM, Darren Chamberlain <[email protected]> wrote: > It's a precedence issue. This: > > [% SET cap = 'capitalised' | upper %] > [% cap %] > > Is, effectively, this: > > [% FILTER upper %][% SET cap = 'capitilized' %][% END %] > [% cap %] > > SET has higher precedence than other operators. You should make SET > operations their own statement.
It's not causing me any problems but I thought it was interesting when I I added the SET operator to the statement. The docs imply that an assignment operation works exactly the same with or without a SET. http://tt2.org/docs/manual/Directives.html#section_SET Clayton -- Clayton Scott [email protected] _______________________________________________ templates mailing list [email protected] http://mail.template-toolkit.org/mailman/listinfo/templates
