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

Side by Side Diff: docs/api/functions.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/filters.md ('k') | docs/api/variables.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 # Global functions # 1 # Global functions #
2 2
3 The following global functions can be used on pages: 3 The following global functions can be used on pages:
4 4
5 * `get_string(name, page=None)`: retrieves a string from a locale file. 5 * `get_string(name, page=None)`: retrieves a string from a locale file.
6 Unless a page is specified the locale file matching the name of the current 6 Unless a page is specified the locale file matching the name of the current
7 page is used. 7 page is used.
8 * `get_page_content(page, locale=None)`: returns a dictionary of the content 8 * `get_page_content(page, locale=None)`: returns a dictionary of the content
9 and params for the given page and locale. Locale defaults to the current one 9 and params for the given page and locale. Locale defaults to the current one
10 if not specified. Provided keys include `head`, `body`, `available_locales` 10 if not specified. Provided keys include `head`, `body`, `available_locales`
11 and `translation_ratio`. 11 and `translation_ratio`.
12
13 Prev: [Custom filters](filters.md) | Up: [Home](../../README.md) | Next: [Home]( ../../README.md)
OLDNEW
« no previous file with comments | « docs/api/filters.md ('k') | docs/api/variables.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld