Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pystache_custom
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
pystache_custom
Commits
d23da511
Commit
d23da511
authored
Apr 04, 2012
by
Rodrigo Bernardo Pimentel
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'development' of
git://github.com/defunkt/pystache
into development
parents
d5df7f15
368f0dfd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
33 deletions
+23
-33
HISTORY.rst
+21
-32
README.rst
+2
-1
No files found.
HISTORY.rst
View file @
d23da511
History
=======
0.5.0 (
TBD
)
-----------
0.5.0 (
2012-04-03
)
-----------
-------
This version represents a major rewrite and refactoring of the code base
that also adds features and fixes many bugs. All functionality and nearly
all unit tests have been preserved. However, some backwards incompatible
changes to the API have been made.
Below is a selection of some of the changes (not exhaustive).
Highlights:
* Pystache now passes all tests in version 1.0.3 of the `Mustache spec`_. [pvande]
...
...
@@ -21,43 +23,30 @@ Highlights:
* Introduced separation of concerns and removed circular dependencies (e.g.
between Template and View classes, cf. `issue #13`_).
* Unicode now used consistently throughout the rendering process.
* Expanded test coverage: nosetests now includes doctests and ~105 test cases
from the Mustache spec (for a total of ~315 unit tests up from 56).
* Added rudimentary benchmarking script.
TODO: complete the list of key changes.
Features:
* 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).
* Views and Renderers accept a custom template loader. Also, this loader
can be a dictionary of partials. [cjerdonek]
* Added a command-line interface. [vrde, cjerdonek]
* Custom escape function can now be passed to Template constructor. [cjerdonek]
* Template class can now handle non-ascii characters in non-unicode strings.
Added default_encoding and decode_errors to Template constructor arguments.
[cjerdonek]
* Loader supports a decode_errors argument. [cjerdonek]
Other changes:
API changes:
* Removed output_encoding options. [cjerdonek]
* Removed automatic use of markupsafe, if available. [cjerdonek]
* Added a command-line interface. [vrde]
* The main rendering class now accepts a custom partial loader (e.g. a dictionary)
and a custom escape function.
* Non-ascii characters in str strings are now supported while rendering.
* Added string encoding, file encoding, and errors options for decoding to unicode.
* Removed the output encoding option.
* Removed the use of markupsafe.
Bug fixes:
* Context values no longer processed as template strings. [jakearchibald]
* Passing ``**kwargs`` to ``Template()`` modified the context. [cjerdonek]
* Passing ``**kwargs`` to ``Template()`` with no context raised an exception. [cjerdonek]
* Whitespace surrounding sections is no longer altered, in accordance with
the mustache spec. [heliodor]
* Fixed an issue that affected the rendering of zeroes when using certain
implementations of Python (i.e. PyPy). [alex]
* Extensionless template files could not be loaded. [cjerdonek]
* Whitespace surrounding sections is no longer altered, per the spec. [heliodor]
* Zeroes now render correctly when using PyPy. [alex]
* Multline comments now permitted. [fczuardi]
Misc:
* Added some docstrings. [kennethreitz]
* 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)
------------------
...
...
README.rst
View file @
d23da511
...
...
@@ -85,7 +85,7 @@ Unicode Handling
This section describes Pystache's handling of unicode (e.g. strings and
encodings).
Internally, Pystache uses
only unicode strings
. For input, Pystache accepts
Internally, Pystache uses
`only unicode strings`_
. For input, Pystache accepts
both ``unicode`` and ``str`` strings. For output, Pystache's template
rendering methods return only unicode.
...
...
@@ -173,6 +173,7 @@ Author
.. _Mustache spec: https://github.com/mustache/spec
.. _mustache(5): http://mustache.github.com/mustache.5.html
.. _nose: http://somethingaboutorange.com/mrl/projects/nose/0.11.1/testing.html
.. _only unicode strings: http://docs.python.org/howto/unicode.html#tips-for-writing-unicode-aware-programs
.. _PyPI: http://pypi.python.org/pypi/pystache
.. _Pystache: https://github.com/defunkt/pystache
.. _semantically versioned: http://semver.org
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment