summaryrefslogtreecommitdiff
path: root/docs/narr/templates.rst
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2010-09-05 15:24:27 +0000
committerChris McDonough <chrism@agendaless.com>2010-09-05 15:24:27 +0000
commitc4599b3676be8f57fcbb26ef6076551ae28f1315 (patch)
tree9eb5f42d3372a1ea602f9787d4a6a8340c96ef3e /docs/narr/templates.rst
parent2f303c3334fa33e87b9530f5a64cff88d758b031 (diff)
downloadpyramid-c4599b3676be8f57fcbb26ef6076551ae28f1315.tar.gz
pyramid-c4599b3676be8f57fcbb26ef6076551ae28f1315.tar.bz2
pyramid-c4599b3676be8f57fcbb26ef6076551ae28f1315.zip
fix
Diffstat (limited to 'docs/narr/templates.rst')
-rw-r--r--docs/narr/templates.rst12
1 files changed, 8 insertions, 4 deletions
diff --git a/docs/narr/templates.rst b/docs/narr/templates.rst
index 566ef4d5f..bae5cd2b4 100644
--- a/docs/narr/templates.rst
+++ b/docs/narr/templates.rst
@@ -239,10 +239,10 @@ System Values Used During Rendering
-----------------------------------
When a template is rendered using
-:func:`repoze.bfg.render_to_response` or :func:`repoze.bfg.render`,
-the renderer representing the template will be provided with a number
-of *system* values. These values are provided in a dictionary to the
-renderer and include:
+:func:`repoze.bfg.renderers.render_to_response` or
+:func:`repoze.bfg.renderers.render`, the renderer representing the
+template will be provided with a number of *system* values. These
+values are provided in a dictionary to the renderer and include:
``context``
The current :mod:`repoze.bfg` context if ``request`` was provided as
@@ -255,6 +255,10 @@ renderer and include:
The renderer name used to perform the rendering,
e.g. ``mypackage:templates/foo.pt``.
+You can define more values which will be passed to every template
+executed as a result of rendering by defining :term:`renderer
+globals`.
+
What any particular renderer does with them is up to the renderer
itself, but most renderers, including al Chameleon renderers, make
these names available as top-level template variables.