title: Implement conditions in logic-less mustache template engine
body: <p>So far <a href="http://mustache.github.com/" rel="nofollow"><code>mustache</code></a> is great, but logic-less now does not seem to be a feature. Suppose, I have to render template in which I can have user's email and name.</p>
  
  <p>If both email and name are present I want my rendered result to be:</p>
  
  <pre><code>&lt;a href="mailto:EMAIL"&gt;NAME&lt;/a&gt;
  </code></pre>
  
  <p>If email is present, but not name, the result would be:</p>
  
  <pre><code>&lt;a href="mailto:EMAIL"&gt;EMAIL&lt;/a&gt;
  </code></pre>
  
  <p>If just name is present, template should be rendered to:</p>
  
  <pre><code>NAME
  </code></pre>
  
  <p>So now I have to do something like:</p>
  
  <pre><code>{{#email}}&lt;a href="mailto:{{email}}"&gt;{{#name}}{{name}}{{/name}}{{^name}}{{email}}{{/name}}&lt;/a&gt;{{/email}}{{^email}}{{name}}{{/email}}
  </code></pre>
  
  <p>This is SO UGLY! And this is just 3 conditions! What if I will need more? I feel like there should be another way of doing the same in <code>mustache</code>. Or shouldn't it?</p>
  
  <p>So, mustache developers think that being logic-less is a good thing, but I have an argument. Most of the times we need to check some variable in template (most of the times we just need to check only existence). So I would do something like:</p>
  
  <pre><code>{% if email %}{{ email }}{% else %}{{ name }}{% endif %}
  </code></pre>
  
  <p>and this looks much more comprehensive then</p>
  
  <pre><code>{{#email}}{{email}}{{/email}}{{^email}}{{name}}{{/email}}
  </code></pre>
  
  <p>isn't it?</p>
  
  <p>If I need to check <code>name</code> too:</p>
  
  <pre><code>{% if email %}{{email}}{% elif name %}{{name}}{% else %}Anonymous{% endif %}
  </code></pre>
  
  <p>vs</p>
  
  <pre><code>{{#email}}{{email}}{{/email}}{{^email}}{{#name}}{{name}}{{/name}}{{^name}}Anonymous{{/name}}{{/email}}
  </code></pre>
  
  <p>If no, would you suggest another templating library for rendering templates in <code>javascript</code>? Integration with <code>jQuery</code> (jQuery-plugin) is an advantage, but not a requirement - I can do it on my own.</p>
  
  <p>Thanks.</p>