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

Unified 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.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cms/bin/test_server.py ('k') | tests/expected_output/en/sitemap » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: docs/api/variables.md
===================================================================
--- a/docs/api/variables.md
+++ b/docs/api/variables.md
@@ -1,9 +1,13 @@
# Variables #
The following variables can be used on pages:
-* `page`: The page name
-* `config`: Contents of the `settings.ini` file in this repository (a
+- `page`: The page name
+- `config`: Contents of the `settings.ini` file in this repository (a
[configparser object](http://docs.python.org/2/library/configparser.html))
-* `locale`: Locale code of the page language
-* `available_locales`: Locale codes of all languages available for this page
+- `locale`: Locale code of the page language
+- `available_locales`: Locale codes of all languages available for this page
+- `site_url`: URL at which the website is served. The value is taken from
+ `settings.ini` (`general/siteurl`) during static generation and is equal to
+ the test server URL (normally `http://localhost:5000`) when working with the
+ test server.
« 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