Commit bacaf95c by Chris Jerdonek

Regenerated .rst README and HISTORY from .md versions using pandoc.

parent 5c9c6935
...@@ -4,126 +4,143 @@ History ...@@ -4,126 +4,143 @@ History
0.5.3 (TBD) 0.5.3 (TBD)
----------- -----------
* Added option of raising errors on missing tags/partials: - Added option of raising errors on missing tags/partials:
``Renderer(missing_tags='strict')`` (issue #110). ``Renderer(missing_tags='strict')`` (issue #110).
* Added a ``parse()`` function that yields a printable, pre-compiled parse tree. - Added a ``parse()`` function that yields a printable, pre-compiled
* Added support for rendering pre-compiled templates. parse tree.
* Bugfix: exceptions raised from a property are no longer swallowed when - Added support for rendering pre-compiled templates.
getting a key from a context stack (issue #110). - Bugfix: exceptions raised from a property are no longer swallowed
* Bugfix: lambda section values can now return non-ascii, non-unicode strings (issue #118). when getting a key from a context stack (issue #110).
* More robust handling of byte strings in Python 3. - Bugfix: lambda section values can now return non-ascii, non-unicode
strings (issue #118).
- More robust handling of byte strings in Python 3.
0.5.2 (2012-05-03) 0.5.2 (2012-05-03)
------------------ ------------------
* Added support for dot notation and version 1.1.2 of the spec (issue #99). [rbp] - Added support for dot notation and version 1.1.2 of the spec (issue
* Missing partials now render as empty string per latest version of spec (issue #115). #99). [rbp]
* Bugfix: falsey values now coerced to strings using str(). - Missing partials now render as empty string per latest version of
* Bugfix: lambda return values for sections no longer pushed onto context stack (issue #113). spec (issue #115).
* Bugfix: lists of lambdas for sections were not rendered (issue #114). - Bugfix: falsey values now coerced to strings using str().
- Bugfix: lambda return values for sections no longer pushed onto
context stack (issue #113).
- Bugfix: lists of lambdas for sections were not rendered (issue #114).
0.5.1 (2012-04-24) 0.5.1 (2012-04-24)
------------------ ------------------
* Added support for Python 3.1 and 3.2. - Added support for Python 3.1 and 3.2.
* Added tox support to test multiple Python versions. - Added tox support to test multiple Python versions.
* Added test script entry point: pystache-test. - Added test script entry point: pystache-test.
* Added __version__ package attribute. - Added \_\_version\_\_ package attribute.
* Test harness now supports both YAML and JSON forms of Mustache spec. - Test harness now supports both YAML and JSON forms of Mustache spec.
* Test harness no longer requires nose. - Test harness no longer requires nose.
0.5.0 (2012-04-03) 0.5.0 (2012-04-03)
------------------ ------------------
This version represents a major rewrite and refactoring of the code base This version represents a major rewrite and refactoring of the code base
that also adds features and fixes many bugs. All functionality and nearly that also adds features and fixes many bugs. All functionality and
all unit tests have been preserved. However, some backwards incompatible nearly all unit tests have been preserved. However, some backwards
changes to the API have been made. incompatible changes to the API have been made.
Below is a selection of some of the changes (not exhaustive). Below is a selection of some of the changes (not exhaustive).
Highlights: Highlights:
* Pystache now passes all tests in version 1.0.3 of the `Mustache spec`_. [pvande] - Pystache now passes all tests in version 1.0.3 of the `Mustache
* Removed View class: it is no longer necessary to subclass from View or spec <https://github.com/mustache/spec>`_. [pvande]
from any other class to create a view. - Removed View class: it is no longer necessary to subclass from View
* Replaced Template with Renderer class: template rendering behavior can be or from any other class to create a view.
modified via the Renderer constructor or by setting attributes on a Renderer instance. - Replaced Template with Renderer class: template rendering behavior
* Added TemplateSpec class: template rendering can be specified on a per-view can be modified via the Renderer constructor or by setting attributes
basis by subclassing from TemplateSpec. on a Renderer instance.
* Introduced separation of concerns and removed circular dependencies (e.g. - Added TemplateSpec class: template rendering can be specified on a
between Template and View classes, cf. `issue #13`_). per-view basis by subclassing from TemplateSpec.
* Unicode now used consistently throughout the rendering process. - Introduced separation of concerns and removed circular dependencies
* Expanded test coverage: nosetests now runs doctests and ~105 test cases (e.g. between Template and View classes, cf. `issue
from the Mustache spec (increasing the number of tests from 56 to ~315). #13 <https://github.com/defunkt/pystache/issues/13>`_).
* Added a rudimentary benchmarking script to gauge performance while refactoring. - Unicode now used consistently throughout the rendering process.
* Extensive documentation added (e.g. docstrings). - Expanded test coverage: nosetests now runs doctests and ~105 test
cases from the Mustache spec (increasing the number of tests from 56
to ~315).
- Added a rudimentary benchmarking script to gauge performance while
refactoring.
- Extensive documentation added (e.g. docstrings).
Other changes: Other changes:
* Added a command-line interface. [vrde] - Added a command-line interface. [vrde]
* The main rendering class now accepts a custom partial loader (e.g. a dictionary) - The main rendering class now accepts a custom partial loader (e.g. a
and a custom escape function. dictionary) and a custom escape function.
* Non-ascii characters in str strings are now supported while rendering. - Non-ascii characters in str strings are now supported while
* Added string encoding, file encoding, and errors options for decoding to unicode. rendering.
* Removed the output encoding option. - Added string encoding, file encoding, and errors options for decoding
* Removed the use of markupsafe. to unicode.
- Removed the output encoding option.
- Removed the use of markupsafe.
Bug fixes: Bug fixes:
* Context values no longer processed as template strings. [jakearchibald] - Context values no longer processed as template strings.
* Whitespace surrounding sections is no longer altered, per the spec. [heliodor] [jakearchibald]
* Zeroes now render correctly when using PyPy. [alex] - Whitespace surrounding sections is no longer altered, per the spec.
* Multline comments now permitted. [fczuardi] [heliodor]
* Extensionless template files are now supported. - Zeroes now render correctly when using PyPy. [alex]
* Passing ``**kwargs`` to ``Template()`` no longer modifies the context. - Multline comments now permitted. [fczuardi]
* Passing ``**kwargs`` to ``Template()`` with no context no longer raises an exception. - Extensionless template files are now supported.
- Passing ``**kwargs`` to ``Template()`` no longer modifies the
context.
- Passing ``**kwargs`` to ``Template()`` with no context no longer
raises an exception.
0.4.1 (2012-03-25) 0.4.1 (2012-03-25)
------------------ ------------------
* Added support for Python 2.4. [wangtz, jvantuyl]
- Added support for Python 2.4. [wangtz, jvantuyl]
0.4.0 (2011-01-12) 0.4.0 (2011-01-12)
------------------ ------------------
* Add support for nested contexts (within template and view)
* Add support for inverted lists - Add support for nested contexts (within template and view)
* Decoupled template loading - Add support for inverted lists
- Decoupled template loading
0.3.1 (2010-05-07) 0.3.1 (2010-05-07)
------------------ ------------------
* Fix package - Fix package
0.3.0 (2010-05-03) 0.3.0 (2010-05-03)
------------------ ------------------
* View.template_path can now hold a list of path - View.template\_path can now hold a list of path
* Add {{& blah}} as an alias for {{{ blah }}} - Add {{& blah}} as an alias for {{{ blah }}}
* Higher Order Sections - Higher Order Sections
* Inverted sections - Inverted sections
0.2.0 (2010-02-15) 0.2.0 (2010-02-15)
------------------ ------------------
* Bugfix: Methods returning False or None are not rendered - Bugfix: Methods returning False or None are not rendered
* Bugfix: Don't render an empty string when a tag's value is 0. [enaeseth] - Bugfix: Don't render an empty string when a tag's value is 0.
* Add support for using non-callables as View attributes. [joshthecoder] [enaeseth]
* Allow using View instances as attributes. [joshthecoder] - Add support for using non-callables as View attributes.
* Support for Unicode and non-ASCII-encoded bytestring output. [enaeseth] [joshthecoder]
* Template file encoding awareness. [enaeseth] - Allow using View instances as attributes. [joshthecoder]
- Support for Unicode and non-ASCII-encoded bytestring output.
[enaeseth]
- Template file encoding awareness. [enaeseth]
0.1.1 (2009-11-13) 0.1.1 (2009-11-13)
------------------ ------------------
* Ensure we're dealing with strings, always - Ensure we're dealing with strings, always
* Tests can be run by executing the test file directly - Tests can be run by executing the test file directly
0.1.0 (2009-11-12) 0.1.0 (2009-11-12)
------------------ ------------------
* First release - First release
.. _2to3: http://docs.python.org/library/2to3.html
.. _issue #13: https://github.com/defunkt/pystache/issues/13
.. _Mustache spec: https://github.com/mustache/spec
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