Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: docs/content/templates.md

Issue 29628724: Issue 5521 - Restructure CMS documentation to make it easier to use and extend (Closed) Base URL: https://hg.adblockplus.org/cms
Patch Set: Add initial API docs Created Dec. 13, 2017, 11:08 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: docs/content/templates.md
===================================================================
new file mode 100644
--- /dev/null
+++ b/docs/content/templates.md
@@ -0,0 +1,13 @@
+# Templates #
+
+The templates specified in the `templates` directory specify the overall
+structure that is common for all pages. These templates should have the file
+extension `tmpl` and use the [Jinja2 template format](http://jinja.pocoo.org/docs/templates/).
+The differences to pages using the same format are:
+
+* No special treatment of the `<head>` tag.
+* Additional variables `head` and `body` are defined with the HTML code that
+ should be added to the head and content of the page respectively.
+
+By default, `default.tmpl` will be used for all pages. If other templates are
+defined, the pages need to choose them explicitly using the `template` setting.

Powered by Google App Engine
This is Rietveld