title: Jinja-like JS templating language
body: <p>I really like django/jinja2 templating languages. Their syntax is extremely simple and yet is highly versatile. Is there anything similar to that in both syntax and capability in javascript, or if not both, at least in the capability.</p>
  
  <p>I looked at underscore, jquery templates, and mustache templates, and none of them seemed to be what I am looking for.</p>
  
  <p><strong>Additional notes</strong></p>
  
  <p>I think out of all libs (I looked at) mustache is the best but I don't really like the syntax. For example this mustache template</p>
  
  <pre><code>{{#people}}
      {{name}}
  {{/people}}
  {{^people}}
      No people :(
  {{/people}}
  </code></pre>
  
  <p>compared to django's templates:</p>
  
  <pre><code>{% for person in people %}
      {{ person.name }}
  {% empty %}
       No people :(
  {% endfor %}`
  </code></pre>
  
  <p>Also the same thing for applying filters. For example:</p>
  
  <pre><code>{{#filter}}{{value}}{{/filter}}
  </code></pre>
  
  <p>vs</p>
  
  <pre><code>{{ value|filter }}
  </code></pre>
  
  <p>I think django/jinja2 approach is more clean and just feels more natural.</p>
  
  <p>So, is there any js library which does templates very similar to django/jinja? If not, I guess I have to live with muschache (or maybe some other good js library - I am open to suggesstions), but it just doesn't feel right.</p>
  
  <p>Thank you.</p>