- 19 Jan, 2012 1 commit
-
-
Chris Jerdonek committed
-
- 18 Jan, 2012 1 commit
-
-
Chris Jerdonek committed
-
- 01 Jan, 2012 17 commits
-
-
Chris Jerdonek committed
-
Chris Jerdonek committed
-
Chris Jerdonek committed
-
Chris Jerdonek committed
-
Chris Jerdonek committed
-
Chris Jerdonek committed
-
Chris Jerdonek committed
-
Chris Jerdonek committed
-
Chris Jerdonek committed
-
Chris Jerdonek committed
-
Chris Jerdonek committed
-
Chris Jerdonek committed
-
Chris Jerdonek committed
-
Chris Jerdonek committed
-
Chris Jerdonek committed
-
Chris Jerdonek committed
-
Now at-- Ran 159 tests in 0.502s FAILED (failures=12)
Chris Jerdonek committed
-
- 31 Dec, 2011 6 commits
-
-
Now at-- Ran 160 tests in 0.755s FAILED (errors=1, failures=18)
Chris Jerdonek committed -
Now at-- Ran 160 tests in 0.471s FAILED (errors=1, failures=24)
Chris Jerdonek committed -
Chris Jerdonek committed
-
Chris Jerdonek committed
-
Chris Jerdonek committed
-
Chris Jerdonek committed
-
- 22 Dec, 2011 3 commits
-
-
Chris Jerdonek committed
-
Chris Jerdonek committed
-
Chris Jerdonek committed
-
- 21 Dec, 2011 7 commits
-
-
Chris Jerdonek committed
-
Chris Jerdonek committed
-
Chris Jerdonek committed
-
Chris Jerdonek committed
-
Chris Jerdonek committed
-
Added two keyword arguments to Template.__init__(): "default_encoding" and "decode_errors". These are passed internally to unicode() as the "encoding" and "errors" arguments when converting strings of type str to unicode.
Chris Jerdonek committed -
From the issue: The constructor `Template.__init__()` should accept an optional `escape` function argument instead of the boolean `disable_escape`. This is more natural. Examples: * Users wanting to disable escaping can pass `lambda s: s`. * Non-markupsafe users wanting double-quotes escaped can pass `lambda s: cgi.escape(s, True)`. The cgi.escape() function doesn't escape double-quotes by default. * Similarly, markupsafe users can specify an alternative to `markupsafe.escape()`.
Chris Jerdonek committed
-
- 19 Dec, 2011 5 commits
-
-
The above change was initially made for testing purpose. The unit tests now run the test cases in test_pystache.py twice if markupsafe is available: once with markupsafe enabled and once without. All unit tests now pass using markupsafe (there was previously one failing test in test_pystache.py: test_non_strings).
Chris Jerdonek committed -
Chris Jerdonek committed
-
Chris Jerdonek committed
-
Chris Jerdonek committed
-
* Used re.split() instead of re.search() to avoid string slicing. * Used "".join() once instead of concatenating strings. * Removed the need for repeating logic on loop exit (i.e. an additional application of self._render_tags(template) and output += ...).
Chris Jerdonek committed
-