summaryrefslogtreecommitdiff
path: root/docs/narr/introduction.rst
diff options
context:
space:
mode:
authorKarl O. Pinc <kop@meme.com>2013-10-07 22:08:16 -0500
committerKarl O. Pinc <kop@meme.com>2013-10-07 22:08:16 -0500
commita274ed67afab341fe54c0a57328e0e810a7c90dc (patch)
treefeeb80189b077285909926e48daa15aa9f251f71 /docs/narr/introduction.rst
parent6461f60320106b5114bb7f226959c7d7f2995ec2 (diff)
parentcba6a8d33f674a1f873851a80358972184544d71 (diff)
downloadpyramid-a274ed67afab341fe54c0a57328e0e810a7c90dc.tar.gz
pyramid-a274ed67afab341fe54c0a57328e0e810a7c90dc.tar.bz2
pyramid-a274ed67afab341fe54c0a57328e0e810a7c90dc.zip
Merge branch 'master' into doc_interactive_dev
Diffstat (limited to 'docs/narr/introduction.rst')
-rw-r--r--docs/narr/introduction.rst11
1 files changed, 9 insertions, 2 deletions
diff --git a/docs/narr/introduction.rst b/docs/narr/introduction.rst
index 816199038..9ec26f276 100644
--- a/docs/narr/introduction.rst
+++ b/docs/narr/introduction.rst
@@ -326,7 +326,14 @@ assertion instead that the view returns "the right stuff" in the dictionary
it returns. You can write "real" unit tests instead of functionally testing
all of your views.
-For example, instead of:
+.. index::
+ pair: renderer; explicitly calling
+ pair: view renderer; explictly calling
+
+.. _example_render_to_response_call:
+
+For example, instead of returning a ``Response`` object from a
+``render_to_response`` call:
.. code-block:: python
:linenos:
@@ -337,7 +344,7 @@ For example, instead of:
return render_to_response('myapp:templates/mytemplate.pt', {'a':1},
request=request)
-You can do this:
+You can return a Python dictionary:
.. code-block:: python
:linenos: