summaryrefslogtreecommitdiff
path: root/docs/narr/declarative.rst
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2011-01-12 02:55:31 -0500
committerChris McDonough <chrism@plope.com>2011-01-12 02:55:31 -0500
commit6a790b32db3ff52e568222fd2cbf1437dcfa09b6 (patch)
tree0915d6889410896d92383e45d60144e653f2941f /docs/narr/declarative.rst
parentf52d595bd1cef5cb97d440c8ba1b1a9850ec8f4b (diff)
downloadpyramid-6a790b32db3ff52e568222fd2cbf1437dcfa09b6.tar.gz
pyramid-6a790b32db3ff52e568222fd2cbf1437dcfa09b6.tar.bz2
pyramid-6a790b32db3ff52e568222fd2cbf1437dcfa09b6.zip
- Document the ``request.override_renderer`` attribute within the narrative
"Renderers" chapter in a section named "Overriding A Renderer at Runtime".
Diffstat (limited to 'docs/narr/declarative.rst')
-rw-r--r--docs/narr/declarative.rst14
1 files changed, 7 insertions, 7 deletions
diff --git a/docs/narr/declarative.rst b/docs/narr/declarative.rst
index f36e55b29..5c731ab06 100644
--- a/docs/narr/declarative.rst
+++ b/docs/narr/declarative.rst
@@ -1068,15 +1068,15 @@ See :ref:`aclauthorizationpolicy_directive` for detailed information.
.. _zcml_adding_and_overriding_renderers:
-Adding and Overriding Renderers via ZCML
-----------------------------------------
+Adding and Changing Renderers via ZCML
+--------------------------------------
New templating systems and serializers can be associated with :app:`Pyramid`
renderer names. To this end, configuration declarations can be made which
-override an existing :term:`renderer factory` and which add a new renderer
+change an existing :term:`renderer factory` and which add a new renderer
factory.
-Adding or overriding a renderer via ZCML is accomplished via the
+Adding or changing an existing renderer via ZCML is accomplished via the
:ref:`renderer_directive` ZCML directive.
For example, to add a renderer which renders views which have a
@@ -1163,7 +1163,7 @@ with ``.jinja2`` as its ``renderer`` value. The ``name`` passed to the
See also :ref:`renderer_directive` and
:meth:`pyramid.config.Configurator.add_renderer`.
-Overriding an Existing Renderer
+Changing an Existing Renderer
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
You can associate more than one filename extension with the same
@@ -1184,7 +1184,7 @@ After you do this, :app:`Pyramid` will treat templates ending in
both the ``.pt`` and ``.zpt`` filename extensions as Chameleon ZPT
templates.
-To override the default mapping in which files with a ``.pt``
+To change the default mapping in which files with a ``.pt``
extension are rendered via a Chameleon ZPT page template renderer, use
a variation on the following in your application's ZCML:
@@ -1200,7 +1200,7 @@ After you do this, the :term:`renderer factory` in
``my.package.pt_renderer`` will be used to render templates which end
in ``.pt``, replacing the default Chameleon ZPT renderer.
-To override the default mapping in which files with a ``.txt``
+To ochange the default mapping in which files with a ``.txt``
extension are rendered via a Chameleon text template renderer, use a
variation on the following in your application's ZCML: