From 1aa83a7893364f8aee9f539c6f6381742c625f5c Mon Sep 17 00:00:00 2001 From: Casey Duncan Date: Wed, 8 Dec 2010 21:06:44 -0800 Subject: clarify paragraph about name argument --- docs/narr/static.rst | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'docs') diff --git a/docs/narr/static.rst b/docs/narr/static.rst index 091b3bff7..34e115802 100644 --- a/docs/narr/static.rst +++ b/docs/narr/static.rst @@ -57,14 +57,13 @@ serve the file ``/path/to/static/dir/foo.js``. The static directory may contain subdirectories recursively, and any subdirectories may hold files; these will be resolved by the static view as you would expect. -While the ``path`` argument can be a number of different things, the ``name`` -argument of the call to -:meth:`pyramid.configuration.Configurator.add_static_view` can also be one of -a number of things: a *view name* or a *URL*. The above examples have shown -usage of the ``name`` argument as a view name. When ``name`` is a *URL* (or -any string with a slash (``/``) in it), static resources can be served from -an external webserver. In this mode, the ``name`` is used as the URL prefix -when generating a URL using :func:`pyramid.url.static_url`. +The ``name`` argument of the call to +:meth:`pyramid.configuration.Configurator.add_static_view` can be either +a *view name*, or a *URL*. In the above examples, the ``name`` argument +is a view name. When ``name`` is a *URL* (or any string with a slash +(``/``) in it), static resources can be served from an external +webserver. In this mode, the ``name`` is used as the URL prefix when +generating a URL using the :func:`pyramid.url.static_url` function. .. note:: -- cgit v1.2.3