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

_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to