From c4599b3676be8f57fcbb26ef6076551ae28f1315 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sun, 5 Sep 2010 15:24:27 +0000 Subject: fix --- docs/narr/templates.rst | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'docs') 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. -- cgit v1.2.3