Created
October 13, 2017 11:06
-
-
Save ksanderer/820dbc00a1675243085fd00c56c10869 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# child.html | |
{% extends 'layouts/full_width.html' %} | |
{% load static filters staticfiles %} | |
{% with sidebar_width="echo test" %} | |
{% block sidebar_wrapper %} | |
{{ block.super }} | |
{% endblock sidebar_wrapper%} | |
{% endwith%} | |
{% block sidebar %} | |
{{ block.super }} | |
<div> | |
sidebar stuff | |
</div> | |
{% endblock %} | |
#layouts/full_width.html | |
{% block sidebar_wrapper %} | |
={{ sidebar_width }}= | |
{% block sidebar %}{% endblock %} | |
{% endblock sidebar_wrapper %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment