Hi list

I have 2 templates, in second template I need render a <span> only when the
first template have defined a variable.

<ul tal:define="var1 python:1">
   <li tal:replace="structure conext/template2"></li>
   <li tal:replace="structure python:conext.template2(var2=1)"></li>

   <input id="x" name="x" value="somevalue">
   <span tal:condition="exists: var1">span2</span>
   <span tal:condition="exists: attr/var1">span2</span>
   <span tal:condition="exists: context/var1">span2</span>
   <span tal:condition="exists: container/var1">span2</span>
   <span tal:condition="exists: options/var2">span3</span>

any condition in span not work :(

Lo bueno de vivir un dia mas
es saber que nos queda un dia menos de vida
Zope maillist  -  Zope@zope.org
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to