Commit dc9cb18d by Chris Jerdonek

HISTORY update and README tweak.

parent ea9f711c
......@@ -6,7 +6,8 @@ History
* Added option of raising errors on missing tags/partials:
``Renderer(missing_tags='strict')`` (issue #110).
* Added a ``parse()`` function that yields a printable parse tree.
* Added a ``parse()`` function that yields a printable, pre-compiled parse tree.
* Added support for rendering pre-compiled templates.
* Bugfix: exceptions raised from a property are no longer swallowed when
getting a key from a context stack (issue #110).
* Bugfix: lambda section values can now return non-ascii, non-unicode strings (issue #118).
......
......@@ -101,6 +101,8 @@ You can also parse a template: ::
[u'Hey ', _SectionNode(key=u'who', index_begin=12, index_end=18, parsed=[_EscapeNode(key=u'.'), u'!'])]
>>> print renderer.render(parsed, {'who': 'Pops'})
Hey Pops!
>>> print renderer.render(parsed, {'who': 'you'})
Hey you!
Python 3
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment