diff options
| author | Juliusz Gonera <jgonera@gmail.com> | 2011-04-19 11:29:40 +0200 |
|---|---|---|
| committer | Juliusz Gonera <jgonera@gmail.com> | 2011-04-19 11:29:40 +0200 |
| commit | e099a08f680c96afb931842ed15003626611dd7a (patch) | |
| tree | abe55237dee442ef43edd4c7886f7cec570ba7f4 /docs/narr/templates.rst | |
| parent | e39ddf10c908d176915da23a6bd209e46815d3c0 (diff) | |
| parent | 6717ccbcd7f481e2a15c4ba318ccf6d63a1b7649 (diff) | |
| download | pyramid-e099a08f680c96afb931842ed15003626611dd7a.tar.gz pyramid-e099a08f680c96afb931842ed15003626611dd7a.tar.bz2 pyramid-e099a08f680c96afb931842ed15003626611dd7a.zip | |
Merge branch 'master' of git://github.com/Pylons/pyramid
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 |
