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

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

Issue 29874564: Issue 6926 - Set "siteurl" to "localhost:5000" in testserver (Closed)
Patch Set: Initial Created Sept. 4, 2018, 2:14 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 | « cms/bin/test_server.py ('k') | tests/expected_output/en/sitemap » ('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
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
13 test server.
OLDNEW
« no previous file with comments | « cms/bin/test_server.py ('k') | tests/expected_output/en/sitemap » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld