summaryrefslogtreecommitdiff
path: root/docs/narr/templates.rst
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2010-10-25 21:41:46 -0400
committerChris McDonough <chrism@plope.com>2010-10-25 21:41:46 -0400
commiteaaa8855d88eedb2ad4fef435e7473022504485e (patch)
tree90a1e05181c607431935d81c5dabf7421d0969f3 /docs/narr/templates.rst
parent7c697c55324a1624c013e1285734aa687964d690 (diff)
downloadpyramid-eaaa8855d88eedb2ad4fef435e7473022504485e.tar.gz
pyramid-eaaa8855d88eedb2ad4fef435e7473022504485e.tar.bz2
pyramid-eaaa8855d88eedb2ad4fef435e7473022504485e.zip
convert more docs from bfg to pyramid
Diffstat (limited to 'docs/narr/templates.rst')
-rw-r--r--docs/narr/templates.rst20
1 files changed, 9 insertions, 11 deletions
diff --git a/docs/narr/templates.rst b/docs/narr/templates.rst
index f3536363c..0650480af 100644
--- a/docs/narr/templates.rst
+++ b/docs/narr/templates.rst
@@ -51,16 +51,14 @@ within the body of a view callable like so:
.. warning:: Earlier iterations of this documentation
(pre-version-1.3) encouraged the application developer to use
ZPT-specific APIs such as
- :func:`pyramid.chameleon_zpt.render_template_to_response`,
- :func:`pyramid.chameleon_zpt.render_template_to_iterable`, and
- :func:`pyramid.chameleon_zpt.render_template` to render
- templates directly. This style of rendering still works, but at
- least for purposes of this documentation, those functions are
- deprecated. Application developers are encouraged instead to use
- the functions available in the :mod:`pyramid.renderers` module
- to perform rendering tasks. This set of functions works to render
- templates for all renderer extensions registered with
- :mod:`pyramid`.
+ :func:`pyramid.chameleon_zpt.render_template_to_response` and
+ :func:`pyramid.chameleon_zpt.render_template` to render templates
+ directly. This style of rendering still works, but at least for
+ purposes of this documentation, those functions are deprecated.
+ Application developers are encouraged instead to use the functions
+ available in the :mod:`pyramid.renderers` module to perform
+ rendering tasks. This set of functions works to render templates
+ for all renderer extensions registered with :mod:`pyramid`.
The ``sample_view`` :term:`view callable` above returns a
:term:`response` object which contains the body of the
@@ -116,7 +114,7 @@ function.
Every view must return a :term:`response` object (except for views
which use a :term:`renderer` named via view configuration, which we'll
-see shortly). The :func:`pyramid.renders.render_to_response`
+see shortly). The :func:`pyramid.renderers.render_to_response`
function is a shortcut function that actually returns a response
object.