Skip to content

Instantly share code, notes, and snippets.

@snide
Last active August 29, 2015 14:11
Show Gist options
  • Save snide/011de380654932ba9968 to your computer and use it in GitHub Desktop.
Save snide/011de380654932ba9968 to your computer and use it in GitHub Desktop.
{# base.html #}
<body style="{% block color %}#000{% endblock %};">
{# articles/individual.html #}
{% extends "templates/partials/base.html" %}
{% block color %}
{% if item.color %}
{{ item.color }}
{% else %}
{% parent %}
{% endif %}
{% endblock %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment