Skip to content

Commit

Permalink
Changed the README doctests to work after 2to3 conversion.
Browse files Browse the repository at this point in the history
  • Loading branch information
cjerdonek committed Apr 8, 2012
1 parent 63d6dd4 commit 7341e36
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.rst
Expand Up @@ -51,8 +51,8 @@ Use It
::

>>> import pystache
>>> pystache.render('Hi {{person}}!', {'person': 'Mom'})
u'Hi Mom!'
>>> print pystache.render('Hi {{person}}!', {'person': 'Mom'})
Hi Mom!

You can also create dedicated view classes to hold your view logic.

Expand All @@ -75,8 +75,8 @@ Then your template, say_hello.mustache::
Pull it together::

>>> renderer = pystache.Renderer()
>>> renderer.render(hello)
u'Hello, Pizza!'
>>> print renderer.render(hello)
Hello, Pizza!


Unicode Handling
Expand Down Expand Up @@ -161,8 +161,8 @@ Author
::

>>> context = { 'author': 'Chris Wanstrath', 'email': 'chris@ozmm.org' }
>>> pystache.render("{{author}} :: {{email}}", context)
u'Chris Wanstrath :: chris@ozmm.org'
>>> print pystache.render("{{author}} :: {{email}}", context)
Chris Wanstrath :: chris@ozmm.org


.. _ctemplate: http://code.google.com/p/google-ctemplate/
Expand Down

0 comments on commit 7341e36

Please sign in to comment.