{% load cache bootstrap %} {% load url from future %} {% cache 600 'navbar' request.path request.user.is_authenticated %} {% if BOOTSTRAP_3 %} {% else %} {% endif %} {% endcache %}