Front-end framework like Django's template framework/Jinja
<p>I was wondering if there was a front-end (javascript?) framework that is similar to Django's template framework. 
<br>
<br>
I'm trying to render JSON using a Django-like template framework(or Jinja like). I need to be able to use <code>if statements</code> and <code>loops</code> that will or will not execute depending on the <code>if statement</code>. The framework doesn't need to have the template inheritance. 
<br>
<br>
I looked at <a href="https://angularjs.org/" rel="nofollow">Angular.js</a> but although it has some similarities, it works really different. the only <code>if statement</code> I found was meant to delete/show <code>HTML</code> code, but you couldn't use a <code>if statement</code> to execute (or not execute) AngularJS code.
<br>
<br>
<strong>TL;DR</strong>
<br>
Is there a front-end framework that works like <a href="http://jinja.pocoo.org/" rel="nofollow">JinJa</a>/Django's template framework?</p>