diff options
| author | Chris McDonough <chrism@plope.com> | 2011-04-18 23:43:04 -0400 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2011-04-18 23:43:04 -0400 |
| commit | 524736e40cf709c64fd6568122e9d8489dcb2343 (patch) | |
| tree | 777a3ebdae0dcf6455418290bb6c474c41f0e3bb /docs/narr/templates.rst | |
| parent | dad904380fd3f53a82e5c48316cc0e7bfa199b74 (diff) | |
| parent | d07e169f89ead3ce41ae35a6c30df2964685c93e (diff) | |
| download | pyramid-524736e40cf709c64fd6568122e9d8489dcb2343.tar.gz pyramid-524736e40cf709c64fd6568122e9d8489dcb2343.tar.bz2 pyramid-524736e40cf709c64fd6568122e9d8489dcb2343.zip | |
Merge branch 'requestresponse'
Diffstat (limited to 'docs/narr/templates.rst')
| -rw-r--r-- | docs/narr/templates.rst | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/docs/narr/templates.rst b/docs/narr/templates.rst index 426ec229b..150b173e3 100644 --- a/docs/narr/templates.rst +++ b/docs/narr/templates.rst @@ -367,13 +367,13 @@ templates as renderers. See :ref:`available_template_system_bindings`. render a view without needing to fork your code to do so. See :ref:`extending_chapter` for more information. -By default, views rendered via a template renderer return a -:term:`Response` object which has a *status code* of ``200 OK``, and a -*content-type* of ``text/html``. To vary attributes of the response -of a view that uses a renderer, such as the content-type, headers, or -status attributes, you must set attributes on the *request* object -within the view before returning the dictionary. See -:ref:`response_request_attrs` for more information. +By default, views rendered via a template renderer return a :term:`Response` +object which has a *status code* of ``200 OK``, and a *content-type* of +``text/html``. To vary attributes of the response of a view that uses a +renderer, such as the content-type, headers, or status attributes, you must +use the API of the :class:`pyramid.response.Response` object exposed as +``request.response`` within the view before returning the dictionary. See +:ref:`request_response_attr` for more information. The same set of system values are provided to templates rendered via a renderer view configuration as those provided to templates rendered |
