From eaaa8855d88eedb2ad4fef435e7473022504485e Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Mon, 25 Oct 2010 21:41:46 -0400 Subject: convert more docs from bfg to pyramid --- docs/narr/templates.rst | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) (limited to 'docs/narr/templates.rst') 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. -- cgit v1.2.3