title: Django template block code does not work when included as a snippet
body: <p>I want to change the state of the navbar as highlighted in different pages.
  When I am normally placing the nav-bar in base.html and add a block content it works.</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang=en&gt;
  &lt;head&gt;
  
  &lt;title&gt;Dashboard&lt;/title&gt;
  {% include 'snippets/css.html' %}
  &lt;/head&gt;
  &lt;body&gt;
          &lt;!-- Sidebar Holder --&gt;
          &lt;nav id="sidebar"&gt;
  
  
              &lt;ul class="list-unstyled components"&gt;
  
                  &lt;li{% block nav_live %}{% endblock %}&gt;
                      &lt;a href="{% url 'live_now' %}"&gt;&lt;i class="fa fa-users" aria-hidden="true"&gt;&lt;/i&gt;Live Now&lt;/a&gt;
                  &lt;/li&gt;
                  &lt;li{% block nav_out %}{% endblock %}&gt;
                      &lt;a href="{% url 'outcome' %}"&gt;&lt;i class="fa fa-crosshairs" aria-hidden="true"&gt;&lt;/i&gt;Outcome Score&lt;/a&gt;
                  &lt;/li&gt;
                  &lt;li {% block nav_customer %}{% endblock %}&gt;
                      &lt;a href="{% url 'customer_search' %}"&gt;&lt;i class="fa fa-search" aria-hidden="true"&gt;&lt;/i&gt;Customer search&lt;/a&gt;
                  &lt;/li&gt;
                  &lt;li {% block nav_journey %}{% endblock %}&gt;
                      &lt;a href="#homeSubmenu" data-toggle="collapse" aria-expanded="false"&gt;&lt;i class="fa fa-map-o" aria-hidden="true"&gt;&lt;/i&gt; Journey Shaping&lt;/a&gt;
                      &lt;ul class="collapse list-unstyled" id="homeSubmenu"&gt;
                          &lt;li&gt;&lt;a href="{% url 'persona' %}"&gt;-Persona&lt;/a&gt;&lt;/li&gt;
                          &lt;li&gt;&lt;a href="#"&gt;-Outcomes&lt;/a&gt;&lt;/li&gt;
                          &lt;li&gt;&lt;a href="#"&gt;-Action Maps&lt;/a&gt;&lt;/li&gt;
                          &lt;li&gt;&lt;a href="#"&gt;-Auto Responses&lt;/a&gt;&lt;/li&gt;
                      &lt;/ul&gt;
                  &lt;/li&gt;
                 &lt;li {% block nav_analytics %}{% endblock %}&gt;
                      &lt;a href="#analyticsmenu" data-toggle="collapse" aria-expanded="false"&gt;&lt;i class="fa fa-bar-chart" aria-hidden="true"&gt;&lt;/i&gt;Analytics&lt;/a&gt;
                      &lt;ul class="collapse list-unstyled" id="analyticsmenu"&gt;
                          &lt;li&gt;&lt;a href="#"&gt;-Visitor Activity&lt;/a&gt;&lt;/li&gt;
                          &lt;li&gt;&lt;a href="#"&gt;-Visit History&lt;/a&gt;&lt;/li&gt;
                          &lt;li&gt;&lt;a href="#"&gt;-Action Map Performance&lt;/a&gt;&lt;/li&gt;
                          &lt;li&gt;&lt;a href="#"&gt;-Interactions&lt;/a&gt;&lt;/li&gt;
                      &lt;/ul&gt;
                  &lt;/li&gt;
                  &lt;li{% block nav_settings %}{% endblock %}&gt;
                      &lt;a href="#settingsmenu" data-toggle="collapse" aria-expanded="false"&gt;&lt;i class="material-icons md-18" &gt;tune&lt;/i&gt;Settings&lt;/a&gt;
                      &lt;ul class="collapse list-unstyled" id="settingsmenu"&gt;
                          &lt;li&gt;&lt;a href="{% url 'set_phone' %}"&gt;-Phone Number&lt;/a&gt;&lt;/li&gt;
                          &lt;li&gt;&lt;a href="{% url 'track_code' %}"&gt;-Tracking Code&lt;/a&gt;&lt;/li&gt;
                          &lt;li&gt;&lt;a href="#"&gt;-Action Map Performance&lt;/a&gt;&lt;/li&gt;
                          &lt;li&gt;&lt;a href="#"&gt;-Interactions&lt;/a&gt;&lt;/li&gt;
                      &lt;/ul&gt;
                  &lt;/li&gt;
                  &lt;li{% block nav_people %}{% endblock %}&gt;
                      &lt;a href="#peoplemenu" data-toggle="collapse" aria-expanded="false"&gt;&lt;i class="material-icons"&gt;people&lt;/i&gt;People&lt;/a&gt;
                      &lt;ul class="collapse list-unstyled" id="peoplemenu"&gt;
                          &lt;li&gt;&lt;a href="{% url 'teams' %}"&gt;-Team Home&lt;/a&gt;&lt;/li&gt;
                          &lt;li&gt;&lt;a href="#"&gt;-Visit History&lt;/a&gt;&lt;/li&gt;
                          &lt;li&gt;&lt;a href="#"&gt;-Action Map Performance&lt;/a&gt;&lt;/li&gt;
                          &lt;li&gt;&lt;a href="#"&gt;-Interactions&lt;/a&gt;&lt;/li&gt;
                      &lt;/ul&gt;
                  &lt;/li&gt;
  
              &lt;/ul&gt;
  
          &lt;/nav&gt;
  
  
  {% block content %}{% endblock content %}
  &lt;/div&gt;
  {% include 'snippets/js.html' %}
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>In live_now.html I add the class="active" and it works</p>
  
  <pre><code>{% extends "base.html" %}
  {% block nav_live %}
  class="active"
  {% endblock %}
  {% block content %}
  {% load static %}
  </code></pre>
  
  <p>but when I try to include nav-bar as a snippet in base.html, class="active" is not rendered in the template </p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang=en&gt;
  &lt;head&gt;
  
  &lt;title&gt;Dashboard&lt;/title&gt;
  {% include 'snippets/css.html' %}
  &lt;/head&gt;
  &lt;body&gt;
  {% include 'snippets/nav.html' %}
  
  
  {% block content %}{% endblock content %}
  &lt;/div&gt;
  {% include 'snippets/js.html' %}
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>