Permalink
Browse files

fixed typos

  • Loading branch information...
1 parent 6cea47e commit c2d65ff71dac6a9b15119db8c2fb09884f4060e3 @blaflamme blaflamme committed Jun 20, 2012
Showing with 3 additions and 3 deletions.
  1. +1 −1 CHANGES.txt
  2. +2 −2 docs/narr/templates.rst
View
@@ -42,7 +42,7 @@ Features
and ``HTTPMovedPermanently`` exceptions, so these can be caught by the
NotFound view (and other exception views).
-- The mako renderer now accepts a defname and returns the template def
+- The mako renderer now accepts a def name and returns the template def
result for the view being called. The uri format using an asset spec is
package:path/to/template#defname.mako. The old way of returning a tuple
from the view is supported for backward compatibility, ('defname', {}).
@@ -718,15 +718,15 @@ Using def inside Mako Templates
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To use a def inside a Mako template, given a :term:`Mako` template file named
-``foo.mak`` and a defname ``bar``, you can configure the template as a
+``foo.mak`` and a def named ``bar``, you can configure the template as a
:term:`renderer` like so:
.. code-block:: python
:linenos:
from pyramid.view import view_config
- @view_config(renderer='foo#defname.mak')
+ @view_config(renderer='foo#bar.mak')
def my_view(request):
return {'project':'my project'}

0 comments on commit c2d65ff

Please sign in to comment.