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

Side by Side Diff: docs/api/variables.md

Issue 29977571: Issue 7201 - Add links to CMS documentation (Closed) Base URL: https://hg.adblockplus.org/cms/
Patch Set: Created Jan. 10, 2019, 12:01 a.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/api/functions.md ('k') | docs/content/filters.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 # 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
15 Prev: [Static content (`static`)](../content/static.md) | Up: [Home](../../READM E.md) | Next: [Custom filters](filters.md)
OLDNEW
« no previous file with comments | « docs/api/functions.md ('k') | docs/content/filters.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld