diff options
| author | Steve Piercy <web@stevepiercy.com> | 2013-10-07 19:47:32 -0700 |
|---|---|---|
| committer | Steve Piercy <web@stevepiercy.com> | 2013-10-07 19:47:32 -0700 |
| commit | e893a0ecc0bc9929fcda1103b510991954dbdc6e (patch) | |
| tree | 526cc6ca9bd61a99bc845c19b24e92e25cb9802f /docs/narr/renderers.rst | |
| parent | 13cf2dd2c912c1961d429c8a5756622cf960d5bf (diff) | |
| parent | a26d09f291bdf4f9c7853b1dbfc9643a678a7b94 (diff) | |
| download | pyramid-e893a0ecc0bc9929fcda1103b510991954dbdc6e.tar.gz pyramid-e893a0ecc0bc9929fcda1103b510991954dbdc6e.tar.bz2 pyramid-e893a0ecc0bc9929fcda1103b510991954dbdc6e.zip | |
Merge branch 'doc_render_to_response2' of github.com:kpinc/pyramid into kpinc-doc_render_to_response2
Diffstat (limited to 'docs/narr/renderers.rst')
| -rw-r--r-- | docs/narr/renderers.rst | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/docs/narr/renderers.rst b/docs/narr/renderers.rst index 4046c67fa..740c81555 100644 --- a/docs/narr/renderers.rst +++ b/docs/narr/renderers.rst @@ -56,10 +56,12 @@ serialization techniques. In practice, renderers obtain application data values from Python dictionaries so, in practice, view callables which use renderers return Python dictionaries. -View configuration can vary the renderer associated with a view callable via -the ``renderer`` attribute. For example, this call to -:meth:`~pyramid.config.Configurator.add_view` associates the ``json`` renderer -with a view callable: +View callables can :ref:`explicitly call <example_render_to_response_call>` +renderers, but typically don't. Instead view configuration declares the +renderer used to render a view callable's results. This is done with the +``renderer`` attribute. For example, this call to +:meth:`~pyramid.config.Configurator.add_view` associates the ``json`` +renderer with a view callable: .. code-block:: python |
