diff options
| author | Chris McDonough <chrism@plope.com> | 2011-08-28 22:15:48 -0400 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2011-08-28 22:15:48 -0400 |
| commit | 55ce9d632f828d285360c1abee9f56042243cac9 (patch) | |
| tree | 5e797c41d58f702a598f2a77273413174d0cc0e5 /docs/narr/templates.rst | |
| parent | f4bf6e5c6e09d8c934ccc0389824bd356b663e76 (diff) | |
| download | pyramid-55ce9d632f828d285360c1abee9f56042243cac9.tar.gz pyramid-55ce9d632f828d285360c1abee9f56042243cac9.tar.bz2 pyramid-55ce9d632f828d285360c1abee9f56042243cac9.zip | |
clean up inappropriate discussions of ZCML
Diffstat (limited to 'docs/narr/templates.rst')
| -rw-r--r-- | docs/narr/templates.rst | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/docs/narr/templates.rst b/docs/narr/templates.rst index d5caed4be..6412c070d 100644 --- a/docs/narr/templates.rst +++ b/docs/narr/templates.rst @@ -335,9 +335,8 @@ template renderer: function. View-configuration-relative asset specifications work only in Chameleon, not in Mako templates. -Similar renderer configuration can be done imperatively and via -:term:`ZCML`. See :ref:`views_which_use_a_renderer`. See also -:ref:`built_in_renderers`. +Similar renderer configuration can be done imperatively. See +:ref:`views_which_use_a_renderer`. See also :ref:`built_in_renderers`. Although a renderer path is usually just a simple relative pathname, a path named as a renderer can be absolute, starting with a slash on UNIX or a drive @@ -366,12 +365,7 @@ templates as renderers. See :ref:`available_template_system_bindings`. with renderers externally via view configuration typically return a dictionary, as above. Making assertions about results returned in a dictionary is almost always more direct and straightforward than - needing to parse HTML. Specifying a renderer from within - :term:`ZCML` (as opposed to imperatively or via a ``view_config`` - decorator, or using a template directly from within a view callable) - also makes it possible for someone to modify the template used to - render a view without needing to fork your code to do so. See - :ref:`extending_chapter` for more information. + needing to parse HTML. By default, views rendered via a template renderer return a :term:`Response` object which has a *status code* of ``200 OK``, and a *content-type* of |
