[Templates] IN keyword?

Paul Makepeace paulm at paulm.com
Sun Oct 7 21:40:37 BST 2007


I'm wondering if there's been any discussion on augmenting TT with a
pythonic (and many others) IN keyword. Allowing something awesomely
compact and readable like,

<input type="checkbox" name="[% name %]" value="[% val %]"
[% IF val IN c.req.param(name); 'checked="checked"'; END %] />

I'm at a loss how to achieve that without building up a hash. Any tips?

P



More information about the templates mailing list