Skip to content

Instantly share code, notes, and snippets.

@LexRiver
Created October 27, 2012 15:43
Show Gist options
  • Save LexRiver/3965118 to your computer and use it in GitHub Desktop.
Save LexRiver/3965118 to your computer and use it in GitHub Desktop.
{% extends 'outer.html' %}
{% block pagetitle %}middle{% endblock %}
{% block head %}
{% parent %}
{% endblock %}
{% block body %}
Generic Page
{% block subbody %}
Middle Body
{% endblock %}
{% endblock %}
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<title>{% block pagetitle %}Default Title{% endblock %} - Example</title>
{% block head %}{% endblock %}
</head>
<body>
<header>
<h1>{% block title %}Nested Inheritence{% endblock %}</h1>
</header>
<section role="main">
{% block body %}Outer Body{% endblock %}
</section>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment