Skip to content

Instantly share code, notes, and snippets.

@gabrielnau
Created May 13, 2012 11:27
Show Gist options
  • Save gabrielnau/2687937 to your computer and use it in GitHub Desktop.
Save gabrielnau/2687937 to your computer and use it in GitHub Desktop.
Locomotive CMS book / Templating / Templating logic / Basics
{% extends parent %}
{% block content %}
the content of this page
{% endblock %}
<html>
<head>
<title>My index page</title>
</head>
<body>
<header>
layout header
</header>
<div id="content">
{% block content %}
the content of the index page
{% endblock %}
</div>
<footer>
layout footer
</footer>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment