summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2008-12-21 22:04:52 +0000
committerChris McDonough <chrism@agendaless.com>2008-12-21 22:04:52 +0000
commitb790ab4eab971450c26302dfaec33b670ed0c51e (patch)
tree97925e5aebd7e32618e19537ae6c3c3c220c6741 /docs
parent6e8682bf10fdeebb75a1027e6e38bc31b0b266d9 (diff)
downloadpyramid-b790ab4eab971450c26302dfaec33b670ed0c51e.tar.gz
pyramid-b790ab4eab971450c26302dfaec33b670ed0c51e.tar.bz2
pyramid-b790ab4eab971450c26302dfaec33b670ed0c51e.zip
Explain.
Diffstat (limited to 'docs')
-rw-r--r--docs/narr/views.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/narr/views.rst b/docs/narr/views.rst
index fa3622c4f..80f08b175 100644
--- a/docs/narr/views.rst
+++ b/docs/narr/views.rst
@@ -395,6 +395,14 @@ the view):
def static_view(environ, start_response):
return static(environ, start_response)
+This view uses the Paste class ``paste.urlparser.StaticURLParser`` to
+do the actual serving of content. This class is a WSGI application;
+we wrap it into a BFG view by using the ``@wsgiapp`` decorator (see
+:ref:`wsgi_module` for the documentation for ``@wsgiapp``). See `the
+Paste documentation for urlparser
+<http://pythonpaste.org/modules/urlparser.html>`_ for more information
+about ``urlparser.StaticURLParser``.
+
Put your static files (JS, etc) on your filesystem in the directory
represented as ``/path/to/static/dir``, then wire it up to be
accessible as ``/static`` using ZCML in your application's