[Zope] ZPT idiom
Jim Penny
jpenny@universal-fasteners.com
Tue, 21 May 2002 15:37:46 -0400
Speaking of idiom:
which do people feel is better:
<input name="test" tal:attributes="value request/foo">
or
<input name="test" value="dummy" tal:attributes="value request/foo">
That is, should the value= tag be given when it is going to be replaced
by a tal? (Both forms work, I am concerned about readability and
pedagogy.)
What about
<input type=checkbox name=test2
tal:attributes="checked request/foo | nothing">
vs.
<input type=checkbox name=test2 checked
tal:attributes="checked request/foo | nothing">
Again, both forms have been tested, does the latter form help or hinder
readability?
Jim Penny