Created
October 18, 2012 14:11
-
-
Save gabrielnau/3912077 to your computer and use it in GitHub Desktop.
Locomotive CMS Guide - Templating
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+- Views | |
+- layout | |
+- application | |
+- mysite | |
+- index | |
+- first page | |
+- second page |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+- Pages | |
+- index | |
+- first page | |
+- second page |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% extends parent %} | |
{% block content %} | |
the content of this page | |
{% endblock %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+- 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