28 Jan
2005
28 Jan
'05
3:14 p.m.
At the risk of being thought somewhat lateral here...
<h2 tal:condition="template/title | template/id">Has a Title or Id</h2>
I'd do this as: <h2 tal:condition="python:template.title or template.id">Has a Title or Id</h2> ...since the rules for Python expressions are generally easier to understand or clarify with the use of parentheses. :) ben