From 4e7436febec1f4dc10a5b32fcc4020bea751226d Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Fri, 9 Oct 2009 07:55:07 +0000 Subject: route -> static directive. --- docs/tutorials/bfgwiki2/definingviews.rst | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'docs/tutorials/bfgwiki2/definingviews.rst') diff --git a/docs/tutorials/bfgwiki2/definingviews.rst b/docs/tutorials/bfgwiki2/definingviews.rst index b89a2c7f7..6dbea104e 100644 --- a/docs/tutorials/bfgwiki2/definingviews.rst +++ b/docs/tutorials/bfgwiki2/definingviews.rst @@ -245,9 +245,10 @@ our package's ``templates/static`` directory: This CSS file will be accessed via e.g. ``http://localhost:6543/static/style.css`` by virtue of the -``static_view`` view we've defined in the ``views.py`` file. Any -number and type of static resources can be placed in this directory -(or subdirectories) and are just referred to by URL within templates. +```` directive we've defined in the ``configure.zcml`` file. +Any number and type of static resources can be placed in this +directory (or subdirectories) and are just referred to by URL within +templates. Mapping Views to URLs in ``configure.zcml`` =========================================== @@ -256,9 +257,7 @@ The ``configure.zcml`` file contains ``route`` declarations (and a lone ``view`` declaration) which serve to map URLs via :term:`url dispatch` to view functions. First, we’ll get rid of the existing ``route`` created by the template using the name ``home``. It’s only -an example and isn’t relevant to our application. We'll leave the -static ``view`` declaration as it is, since we are going to use it to -serve CSS. +an example and isn’t relevant to our application. We then need to add four ``route`` declarations to ``configure.zcml``. Note that the *ordering* of these declarations is very important. -- cgit v1.2.3