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

Delta Between Two Patch Sets: 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
Left Patch Set: Created Dec. 4, 2017, 9:59 a.m.
Right Patch Set: Add initial API docs Created Dec. 13, 2017, 11:08 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Right: Side by side diff | Download
LEFTRIGHT
(no file at all)
1 # Templates #
2
3 The templates specified in the `templates` directory specify the overall
4 structure that is common for all pages. These templates should have the file
5 extension `tmpl` and use the [Jinja2 template format](http://jinja.pocoo.org/doc s/templates/).
6 The differences to pages using the same format are:
7
8 * No special treatment of the `<head>` tag.
9 * Additional variables `head` and `body` are defined with the HTML code that
10 should be added to the head and content of the page respectively.
11
12 By default, `default.tmpl` will be used for all pages. If other templates are
13 defined, the pages need to choose them explicitly using the `template` setting.
LEFTRIGHT

Powered by Google App Engine
This is Rietveld