Casey Duncan
2010-12-12 58081111d47fd4beb380fdedc21513d4da052c1b
rework/clarify opening paragraph
1 files modified
10 ■■■■ changed files
docs/narr/templates.rst 10 ●●●● patch | view | raw | blame | history
docs/narr/templates.rst
@@ -282,11 +282,11 @@
Templates Used as Renderers via Configuration
---------------------------------------------
Instead of using the :func:`pyramid.renderers.render_to_response`
API within the body of a view function directly to render a specific
template to a response, you may associate a template written in a
supported templating language with a view indirectly by specifying it
as a :term:`renderer` in *view configuration*.
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`.
To use a renderer via view configuration, specify a template
:term:`resource specification` as the ``renderer`` argument or