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

Delta Between Two Patch Sets: docs/api/variables.md

Issue 29977571: Issue 7201 - Add links to CMS documentation (Closed) Base URL: https://hg.adblockplus.org/cms/
Left Patch Set: Created Jan. 10, 2019, 12:01 a.m.
Right 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:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « docs/api/functions.md ('k') | docs/content/filters.md » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 # Variables # 1 # Variables #
2 2
3 The following variables can be used on pages: 3 The following variables can be used on pages:
4 4
5 - `page`: The page name 5 - `page`: The page name
6 - `config`: Contents of the `settings.ini` file in this repository (a 6 - `config`: Contents of the `settings.ini` file in this repository (a
7 [configparser object](http://docs.python.org/2/library/configparser.html)) 7 [configparser object](http://docs.python.org/2/library/configparser.html))
8 - `locale`: Locale code of the page language 8 - `locale`: Locale code of the page language
9 - `available_locales`: Locale codes of all languages available for this page 9 - `available_locales`: Locale codes of all languages available for this page
10 - `site_url`: URL at which the website is served. The value is taken from 10 - `site_url`: URL at which the website is served. The value is taken from
11 `settings.ini` (`general/siteurl`) during static generation and is equal to 11 `settings.ini` (`general/siteurl`) during static generation and is equal to
12 the test server URL (normally `http://localhost:5000`) when working with the 12 the test server URL (normally `http://localhost:5000`) when working with the
13 test server. 13 test server.
14 14
15 -----
15 Prev: [Static content (`static`)](../content/static.md) | Up: [Home](../../READM E.md) | Next: [Custom filters](filters.md) 16 Prev: [Static content (`static`)](../content/static.md) | Up: [Home](../../READM E.md) | Next: [Custom filters](filters.md)
LEFTRIGHT

Powered by Google App Engine
This is Rietveld