diff options
| author | Michael Merickel <michael@merickel.org> | 2013-09-06 00:02:46 -0500 |
|---|---|---|
| committer | Michael Merickel <michael@merickel.org> | 2013-09-06 00:22:24 -0500 |
| commit | 404b28ba2efb02d93777a3e01fd602c96af8c077 (patch) | |
| tree | b7a29799cd95b209dde60f903ac42bb5865cf1d4 /docs/tutorials/wiki/basiclayout.rst | |
| parent | ac681bc83778443bcb70b9c1ea370368044614fb (diff) | |
| download | pyramid-404b28ba2efb02d93777a3e01fd602c96af8c077.tar.gz pyramid-404b28ba2efb02d93777a3e01fd602c96af8c077.tar.bz2 pyramid-404b28ba2efb02d93777a3e01fd602c96af8c077.zip | |
update the code in the wiki and wiki2 tutorials to use pyramid_chameleon
Diffstat (limited to 'docs/tutorials/wiki/basiclayout.rst')
| -rw-r--r-- | docs/tutorials/wiki/basiclayout.rst | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/docs/tutorials/wiki/basiclayout.rst b/docs/tutorials/wiki/basiclayout.rst index 25ac9aabd..cdf52b73e 100644 --- a/docs/tutorials/wiki/basiclayout.rst +++ b/docs/tutorials/wiki/basiclayout.rst @@ -34,7 +34,10 @@ point happens to be the ``main`` function within the file named factory` and the settings keywords parsed by :term:`PasteDeploy`. The root factory is named ``root_factory``. -#. *Line 15*. Register a "static view" which answers requests whose URL path +#. *Line 15*. Include support for the :term:`Chameleon` template rendering + bindings, allowing us to use the ``.pt`` templates. + +#. *Line 16*. Register a "static view" which answers requests whose URL path start with ``/static`` using the :meth:`pyramid.config.Configurator.add_static_view` method. This statement registers a view that will serve up static assets, such as CSS @@ -47,7 +50,7 @@ point happens to be the ``main`` function within the file named package. Alternatively the scaffold could have used an *absolute* asset specification as the path (``tutorial:static``). -#. *Line 16*. Perform a :term:`scan`. A scan will find :term:`configuration +#. *Line 17*. Perform a :term:`scan`. A scan will find :term:`configuration decoration`, such as view configuration decorators (e.g., ``@view_config``) in the source code of the ``tutorial`` package and will take actions based on these decorators. We don't pass any arguments to @@ -56,7 +59,7 @@ point happens to be the ``main`` function within the file named The scaffold could have equivalently said ``config.scan('tutorial')``, but it chose to omit the package name argument. -#. *Line 17*. Use the +#. *Line 18*. Use the :meth:`pyramid.config.Configurator.make_wsgi_app` method to return a :term:`WSGI` application. |
