Skip to content

Instantly share code, notes, and snippets.

@gabrielnau
Created October 18, 2012 14:11
Show Gist options
  • Save gabrielnau/3912077 to your computer and use it in GitHub Desktop.
Save gabrielnau/3912077 to your computer and use it in GitHub Desktop.
Locomotive CMS Guide - Templating
+- Views
+- layout
+- application
+- mysite
+- index
+- first page
+- second page
+- Pages
+- index
+- first page
+- second page
<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>
{% extends parent %}
{% block content %}
the content of this page
{% endblock %}
+- Pages
+- index
+- first page
+- child of first page
+- child of first page's child
+- second page
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment