diff options
| author | Chris McDonough <chrism@plope.com> | 2013-09-08 04:45:14 -0400 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2013-09-08 04:45:14 -0400 |
| commit | 72bf7517187f68908c5c4b53760a57a99db8889b (patch) | |
| tree | 98576c6ad37cf7c6c0cfaf62b635723380cc2393 /docs/tutorials/wiki/basiclayout.rst | |
| parent | fc477b2e4b20ae2788e468e45b2831e774be8ced (diff) | |
| parent | 6a28ee15243fa1a3ae918d176cc6629c1cacfb7e (diff) | |
| download | pyramid-72bf7517187f68908c5c4b53760a57a99db8889b.tar.gz pyramid-72bf7517187f68908c5c4b53760a57a99db8889b.tar.bz2 pyramid-72bf7517187f68908c5c4b53760a57a99db8889b.zip | |
Merge branch 'mmerickel-feature.rendering-doc-updates'
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. |
