lp:~miracle2k/coffin/context-safestring-wrapper

Created by Michael Elsdörfer and last modified
Get this branch:
bzr branch lp:~miracle2k/coffin/context-safestring-wrapper
Only Michael Elsdörfer can upload to this branch. If you are Michael Elsdörfer please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Michael Elsdörfer
Project:
Coffin
Status:
Development

Recent revisions

63. By Michael Elsdörfer

Added a context proxy that ensures that Django safe-strings passed through the context will be handled correctly by Jinja2. While this mostly works, it has some unintended side-effects (like a lot of comparison operations fail for some reason) and is currently not really for production use. Possible, a completely different approach would be better (see also the extensive comments in this commit for suggestions).

62. By Michael Elsdörfer

Make sure that the library test file does change the autoescape setting for subsequent tests.

61. By Michael Elsdörfer

Context flattening did not handle nested Contexts. This also caused certain call semantics of 'render_to_string' to break.

60. By Michael Elsdörfer

Fixed a bug that prevented 'render_to_string' being called in a specific way.

59. By Michael Elsdörfer

Fixed another bug in render_to_string that made the values from context_instance be ignored.

58. By Michael Elsdörfer

Rather than sliding our own Template class in by assigning to __class__ whenever Jinja2 returns a template to us, let's take advantage of Jinja2's (hidden?) 'template_class' environment option.

57. By Michael Elsdörfer

Added test for a particularly subtle bug that existed for some time (was fixed in r54).

56. By Michael Elsdörfer

Added note about the syndication support to README.

55. By Michael Elsdörfer

Added Jinja2 version of Django's Feed class.

54. By Michael Elsdörfer

Refactored rendering internals to use our new Django-compatible version of Jinja2's template class. This change allows code that relied on Django specific behaviour of that class to switch to Coffin seamlessly.

Branch metadata

Branch format:
Branch format 6
Repository format:
Bazaar pack repository format 1 (needs bzr 0.92)
This branch contains Public information 
Everyone can see this information.