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

Side by Side Diff: docs/content/templates.md

Issue 29977571: Issue 7201 - Add links to CMS documentation (Closed) Base URL: https://hg.adblockplus.org/cms/
Patch Set: Address comments on PS1 Created Jan. 14, 2019, 3:33 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « docs/content/static.md ('k') | docs/usage/generate-static-files.md » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Templates # 1 # Templates #
2 2
3 The templates specified in the `templates` directory specify the overall 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 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/). 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: 6 The differences to pages using the same format are:
7 7
8 * No special treatment of the `<head>` tag. 8 * No special treatment of the `<head>` tag.
9 * Additional variables `head` and `body` are defined with the HTML code that 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. 10 should be added to the head and content of the page respectively.
11 11
12 By default, `default.tmpl` will be used for all pages. If other templates are 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. 13 defined, the pages need to choose them explicitly using the `template` setting.
14 14
15 -----
15 Prev: [Localization files (`locales`)](locales.md) | Up: [Home](../../README.md) | Next: [Various include files (`includes`)](includes.md) 16 Prev: [Localization files (`locales`)](locales.md) | Up: [Home](../../README.md) | Next: [Various include files (`includes`)](includes.md)
OLDNEW
« no previous file with comments | « docs/content/static.md ('k') | docs/usage/generate-static-files.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld