Skip to content

Commit

Permalink
Merge branch 'master' of github.com:Pylons/pyramid
Browse files Browse the repository at this point in the history
  • Loading branch information
mcdonc committed Sep 15, 2012
2 parents d501b7c + a9f5e70 commit dbd1086
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/narr/templates.rst
Expand Up @@ -528,7 +528,7 @@ Sommetime you'd like to render a macro inside of a Chameleon ZPT template
instead of the full Chameleon ZPT template. To render the content of a
``define-macro`` field inside a Chameleon ZPT template, given a Chameleon
template file named ``foo.pt`` and a macro named ``bar`` defined within it
(e.g. ``<div metal:define-macro="bar">...</div>``, you can configure the
(e.g. ``<div metal:define-macro="bar">...</div>``), you can configure the
template as a :term:`renderer` like so:

.. code-block:: python
Expand All @@ -540,8 +540,8 @@ template as a :term:`renderer` like so:
def my_view(request):
return {'project':'my project'}
The above will render the ``bar`` macro from within the ``foo.pt`` template
instead of the entire template.
The above will render only the ``bar`` macro defined within the ``foo.pt``
template instead of the entire template.

.. note::

Expand Down

0 comments on commit dbd1086

Please sign in to comment.