diff options
| author | Casey Duncan <casey.duncan@gmail.com> | 2010-12-12 11:38:13 -0700 |
|---|---|---|
| committer | Casey Duncan <casey.duncan@gmail.com> | 2010-12-12 11:38:13 -0700 |
| commit | 373b79f0a0384eaf56126bfbf5d322f3d63ffdd4 (patch) | |
| tree | a719bf44edc1b3361a4afe32fb5eecefc8f1e570 /docs/narr/templates.rst | |
| parent | ba1db7974997ad781590a16d4a4298e1928a964d (diff) | |
| download | pyramid-373b79f0a0384eaf56126bfbf5d322f3d63ffdd4.tar.gz pyramid-373b79f0a0384eaf56126bfbf5d322f3d63ffdd4.tar.bz2 pyramid-373b79f0a0384eaf56126bfbf5d322f3d63ffdd4.zip | |
clarify note about pyramid automatically providing the request to renderers
Diffstat (limited to 'docs/narr/templates.rst')
| -rw-r--r-- | docs/narr/templates.rst | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/docs/narr/templates.rst b/docs/narr/templates.rst index a596a251a..c86d20935 100644 --- a/docs/narr/templates.rst +++ b/docs/narr/templates.rst @@ -286,7 +286,7 @@ An alternative to using :func:`pyramid.renderers.render_to_response` to render templates manually in your view callable code, is to specify the template as a :term:`renderer` in your *view configuration*. This can be done with any of the -templating languages supported by :app:`pyramid`. +templating languages supported by :app:`Pyramid`. To use a renderer via view configuration, specify a template :term:`resource specification` as the ``renderer`` argument, or @@ -312,13 +312,11 @@ template renderer: def my_view(request): return {'foo':1, 'bar':2} -.. note:: It is not necessary to supply the ``request`` value as a key +.. note:: You do not need to supply the ``request`` value as a key in the dictionary result returned from a renderer-configured view - callable in order to ensure that the "most correct" system values - are supplied to the renderer as it is when you use - :func:`pyramid.renderers.render` or - :func:`pyramid.renderers.render_to_response`. This is handled - automatically. + callable. :app:`Pyramid` automatically supplies this value for + you so that the "most correct" system values are provided to + the renderer. .. warning:: |
