title: jsrender if-else using {{=propName}}
body: <p>I'm trying out jsRender.</p>
  
  <p>What I want to do:</p>
  
  <p>JS template:</p>
  
  <pre><code>&lt;script id="theaterTemplate" type="text/x-jquery-tmpl"&gt;
      {{* 
          if ("{{=theaterId}}" == getCurrentTheaterId()) {
      }}
          &lt;a class="active" href="#"&gt;
      {{*
          } else {
      }}         
          &lt;a href="#"&gt;           
      {{* } }}
          {{=theaterName}}
      &lt;/a&gt;
  &lt;/script&gt;
  </code></pre>
  
  <p>In other JS:</p>
  
  <pre><code>function getCurrentTheaterId() {
      return "523";
  }
  </code></pre>
  
  <p>Basically, in the template, if the current theater id in iteration matches what's returned from the js function, then set the class to active.  The "{{=theaterId}}" breaks in the if condition.  I guess you're not allowed to access current json properties in the if condition.</p>
  
  <p>Any ideas on how to do this?</p>
  
  <p>Hopefully that makes sense.  Thanks!</p>