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

Unified Diff: docs/api/variables.md

Issue 29628724: Issue 5521 - Restructure CMS documentation to make it easier to use and extend (Closed) Base URL: https://hg.adblockplus.org/cms
Patch Set: Add initial API docs Created Dec. 13, 2017, 11:08 a.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
Index: docs/api/variables.md
===================================================================
new file mode 100644
--- /dev/null
+++ b/docs/api/variables.md
@@ -0,0 +1,9 @@
+# Variables #
+
+The following variables can be used on pages:
+
+* `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
« no previous file with comments | « docs/api/functions.md ('k') | docs/content/filters.md » ('j') | docs/content/includes.md » ('J')

Powered by Google App Engine
This is Rietveld