<br><br><div class="gmail_quote">On Thu, Jun 25, 2009 at 00:17, Miguel Beltran R. <span dir="ltr">&lt;<a href="mailto:yourpadre@gmail.com">yourpadre@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi list<br><br>I have 2 templates, in second template I need render a &lt;span&gt; only when the first template have defined a variable. <br><br>template1:<br>&lt;ul tal:define=&quot;var1 python:1&quot;&gt;<br>   &lt;li tal:replace=&quot;structure conext/template2&quot;&gt;&lt;/li&gt;<br>

   &lt;li tal:replace=&quot;structure python:conext.template2(var2=1)&quot;&gt;&lt;/li&gt;<br>&lt;/ul&gt;<br clear="all"><br>template2:<br>&lt;li&gt;<br>   &lt;input id=&quot;x&quot; name=&quot;x&quot; value=&quot;somevalue&quot;&gt;<br>

   &lt;span tal:condition=&quot;exists: var1&quot;&gt;span2&lt;/span&gt;<br>   &lt;span tal:condition=&quot;exists: attr/var1&quot;&gt;span2&lt;/span&gt;<br>   &lt;span tal:condition=&quot;exists: context/var1&quot;&gt;span2&lt;/span&gt;<br>


   &lt;span tal:condition=&quot;exists: container/var1&quot;&gt;span2&lt;/span&gt;<br>

   &lt;span tal:condition=&quot;exists: options/var2&quot;&gt;span3&lt;/span&gt;<br>
&lt;/li&gt;<br><br>any condition in span not work :( <br></blockquote><div><br>The &#39;options&#39; namespace is your friend.<br><br>-aj <br></div></div>