summaryrefslogtreecommitdiff
path: root/docs/tutorials/bfgwiki2/basiclayout.rst
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2009-10-09 07:55:07 +0000
committerChris McDonough <chrism@agendaless.com>2009-10-09 07:55:07 +0000
commit4e7436febec1f4dc10a5b32fcc4020bea751226d (patch)
treefb78a97e0a5f96d6a5b913cbe14b6a50f910e330 /docs/tutorials/bfgwiki2/basiclayout.rst
parente8a3613bc35083acc850f206876037a735b813ed (diff)
downloadpyramid-4e7436febec1f4dc10a5b32fcc4020bea751226d.tar.gz
pyramid-4e7436febec1f4dc10a5b32fcc4020bea751226d.tar.bz2
pyramid-4e7436febec1f4dc10a5b32fcc4020bea751226d.zip
route -> static directive.
Diffstat (limited to 'docs/tutorials/bfgwiki2/basiclayout.rst')
-rw-r--r--docs/tutorials/bfgwiki2/basiclayout.rst11
1 files changed, 4 insertions, 7 deletions
diff --git a/docs/tutorials/bfgwiki2/basiclayout.rst b/docs/tutorials/bfgwiki2/basiclayout.rst
index ca72fd42a..9efee63a7 100644
--- a/docs/tutorials/bfgwiki2/basiclayout.rst
+++ b/docs/tutorials/bfgwiki2/basiclayout.rst
@@ -42,13 +42,10 @@ following:
response. You will use mostly ``<route>`` statements in a
:term:`URL dispatch` based application to map URLs to code.
-#. *Lines 14-17*. Register a ``<route>`` that will match with a path
- that starts with ``/static/``. This points at a bit of code
- (``.views.static_view``) that will serve up static resources for
- us, in this case, at ``http://localhost:6543/static/`` and below.
- The ``*subpath`` token captures the remainder of the path and sets
- the request :term:`subpath` to a derivation of the remainder of the
- path, which is relied on by the view it mentions. With this view
+#. *Lines 14-17*. Register a ``<static>`` directive that will match
+ any URL hat starts with ``/static/``. This will serve up static
+ resources for us, in this case, at
+ ``http://localhost:6543/static/`` and below. With this
declaration, we're saying that any URL that starts with ``/static``
should go to the static view; any remainder of its path (e.g. the
``/foo`` in ``/static/foo``) will be used to compose a path to a