title: jQuery tmpl plugin - Conditional templates?
body: <p>I'm currently generating a list using the <a href="http://api.jquery.com/jquery.tmpl/" rel="nofollow">jQuery tmpl plugin</a>:</p>
  
  <pre><code>&lt;script id="mainTemplate" type="text/x-jquery-tmpl"&gt;
   &lt;li&gt;
    &lt;a class="Page" href="#" rel="${LINK}" &gt;${DESCRIPTION}&lt;/a&gt;
   &lt;/li&gt;
  &lt;/script&gt;
  </code></pre>
  
  <p>Is it at all possible to have things conditionally processed using jQuery templates? I tried:</p>
  
  <pre><code>&lt;script id="mainTemplate" type="text/x-jquery-tmpl"&gt;
   &lt;li&gt;
   {{if ${TYPE} == "INTLINK" }}
    &lt;a class="Page" href="#" rel="${LINK}" &gt;${DESCRIPTION}&lt;/a&gt;
   {{/if}}
   &lt;/li&gt;
  &lt;/script&gt;
  </code></pre>
  
  <p>But it didn't work. I want to be able to conditionally have different template output depending on the data being passed (via json).</p>