From f6b3155614c54efa733a908013c87ad8a2197d7e Mon Sep 17 00:00:00 2001 From: Carlos de la Guardia Date: Thu, 18 Mar 2010 16:53:35 +0000 Subject: quick fixes for static chapter --- docs/narr/static.rst | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'docs') diff --git a/docs/narr/static.rst b/docs/narr/static.rst index a98de3c7a..ad42f1b79 100644 --- a/docs/narr/static.rst +++ b/docs/narr/static.rst @@ -17,13 +17,13 @@ Serving Static Resources Using a ZCML Directive Use of the ``static`` ZCML directive or the :meth:`repoze.bfg.configuration.configurator.add_static_view` method is the preferred way to instruct :mod:`repoze.bfg` to serve static -resources such as JavaScript and CSS files. These mechanisms makes +resources such as JavaScript and CSS files. This mechanism makes static files available at a name relative to the application root URL, e.g. ``/static``. Here's an example of a ``static`` ZCML directive that will serve files -up ``/static`` URL from the ``/var/www/static`` directory of the -computer which runs the :mod:`repoze.bfg` application. +up under the ``/static`` URL from the ``/var/www/static`` directory of +the computer which runs the :mod:`repoze.bfg` application. .. code-block:: xml :linenos: @@ -34,8 +34,8 @@ computer which runs the :mod:`repoze.bfg` application. /> Here's an example of a ``static`` directive that will serve files up -``/static`` URL from the ``a/b/c/static`` directory of the Python -package named ``some_package``. +under the ``/static`` URL from the ``a/b/c/static`` directory of the +Python package named ``some_package``. .. code-block:: xml :linenos: @@ -57,8 +57,8 @@ package in which the ``configure.zcml`` file lives. path="static" /> -When you place your static files on filesystem in the directory -represented as the ``path`` of the directive you, you should be able +When you place your static files on the filesystem in the directory +represented as the ``path`` of the directive, you should be able to view the static files in this directory via a browser at URLs prefixed with the directive's ``name``. For instance if the ``static`` directive's ``name`` is ``static`` and the static -- cgit v1.2.3