summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl O. Pinc <kop@meme.com>2013-10-02 11:35:34 -0500
committerKarl O. Pinc <kop@meme.com>2013-10-02 11:35:34 -0500
commit68d16988404aec339fde1df7822c783d3ea23af6 (patch)
treeda914820026df8689b1db849109d4586a74880fe
parent77edee7e91356f4f0f1d12c2dd159965b0576109 (diff)
downloadpyramid-68d16988404aec339fde1df7822c783d3ea23af6.tar.gz
pyramid-68d16988404aec339fde1df7822c783d3ea23af6.tar.bz2
pyramid-68d16988404aec339fde1df7822c783d3ea23af6.zip
Docs: renderers.rst: Explain typical renderer usage.
-rw-r--r--docs/narr/renderers.rst12
1 files changed, 8 insertions, 4 deletions
diff --git a/docs/narr/renderers.rst b/docs/narr/renderers.rst
index 3059aef35..235dbaf83 100644
--- a/docs/narr/renderers.rst
+++ b/docs/narr/renderers.rst
@@ -49,10 +49,14 @@ Writing View Callables Which Use a Renderer
-------------------------------------------
As we've seen, a view callable needn't always return a Response object.
-Instead, it may return an arbitrary Python object, with the expectation
-that a :term:`renderer` will convert that object into a response instance on
-your behalf. Some renderers use a templating system; other renderers use
-object serialization techniques.
+Instead, it may return an arbitrary Python object, with the expectation that
+a :term:`renderer` will convert that object into a response instance on your
+behalf. Some renderers use a templating system; other renderers use object
+serialization techniques. Because renderers inject variable data into some
+output (otherwise a static Response object could be returned) the renderer
+must have some means of identifying the data and mapping its transformation
+into the desired output. Often, as the means of providing this mapping, the
+object supplied to the renderer is a Python dictionary.
View configuration can vary the renderer associated with a view callable via
the ``renderer`` attribute. For example, this call to