Skip to content

Instantly share code, notes, and snippets.

@simonbowen
Created February 9, 2013 17:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save simonbowen/4746281 to your computer and use it in GitHub Desktop.
Save simonbowen/4746281 to your computer and use it in GitHub Desktop.
{% extends "parent.html" %}
{% block title %}Child Template{% endblock %}
{% block container %}Some page content{% endblock %}
<html>
<head>
{% block header %}
<title>{% block title %}Parent Template{% endblock %}</title>
{% endblock %}
</head>
<body>
{% block body %}
<header></header>
<div id="container">
{% block container %}
{% endblock %}
</div>
<footer></footer>
{% endblock %}
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment