summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2011-12-02 15:13:01 -0500
committerChris McDonough <chrism@plope.com>2011-12-02 15:13:01 -0500
commitd5666e630a08c943a22682540aa51174cee6851f (patch)
tree3054c03b8d484227126aa73e4a603076c33ffc46 /docs
parentea814bea7b226206f59da70491f37dfcec05b319 (diff)
parent9ac23411c968cda869770d66e6b0ab7108b90ba5 (diff)
downloadpyramid-d5666e630a08c943a22682540aa51174cee6851f.tar.gz
pyramid-d5666e630a08c943a22682540aa51174cee6851f.tar.bz2
pyramid-d5666e630a08c943a22682540aa51174cee6851f.zip
Merge branch 'master' of github.com:Pylons/pyramid
Diffstat (limited to 'docs')
-rw-r--r--docs/narr/firstapp.rst11
1 files changed, 5 insertions, 6 deletions
diff --git a/docs/narr/firstapp.rst b/docs/narr/firstapp.rst
index ccc2b8b18..c082f616b 100644
--- a/docs/narr/firstapp.rst
+++ b/docs/narr/firstapp.rst
@@ -71,11 +71,10 @@ named ``hello_world``.
:linenos:
:pyobject: hello_world
-This function doesn't do anything very difficult. The functions accepts a
-single argument (``request``). The ``hello_world`` function returns an
-instance of the :class:`pyramid.response.Response`. The single argument to
-the class' constructor is value computed from arguments matched from the url
-route. This value becomes the body of the response.
+The function accepts a single argument (``request``) and it returns an
+instance of the :class:`pyramid.response.Response` class. The single
+argument to the class' constructor is a string computed from parameters
+matched from the URL. This value becomes the body of the response.
This function is known as a :term:`view callable`. A view callable
accepts a single argument, ``request``. It is expected to return a
@@ -157,7 +156,7 @@ Adding Configuration
:lines: 10-11
First line above calls the :meth:`pyramid.config.Configurator.add_route`
-method, which registers a :term:`route` to match any url path that begins
+method, which registers a :term:`route` to match any URL path that begins
with ``/hello/`` followed by a string.
The second line, ``config.add_view(hello_world, route_name='hello')``,