Re: [Templates] Filter inside a vmethod
[prev]
[thread]
[next]
[Date index for 2005/02/10]
Bill Moseley wrote:
> Is the parser not able to do this?
>
> foo.push( item.name | html );
No, not in TT2. '|' is a direct alias for 'FILTER', so you're writing:
foo.push( item.name FILTER html );
And that just don't work. :-)
But it does in TT3. '|' becomes a new operator separate from the FILTER
keyword and it works as per your example.
A
_______________________________________________
templates mailing list
templates@xxxxxxxxxxxxxxxx.xxx
http://lists.template-toolkit.org/mailman/listinfo/templates
 |
 |
Re: [Templates] Filter inside a vmethod
Andy Wardley 09:44 on 10 Feb 2005
|