- Added support for optional `scoped` modifier to blocks.
- Added support for line-comments.
- Added the `meta` module.
+- Renamed (undocumented) attribute overlay to overlayed on the environment
+ because it was clashing with a method of the same name. The new attribute
_newline_re = re.compile(r'(?:\r\n|\r|\n)')
+# Django stores an itertools object on the cycle node. Not only is this
+# thread unsafe but also a problem for the converter which needs the raw
+# string values passed to the constructor to create a jinja loop.cycle()
_old_cycle_init = core_tags.CycleNode.__init__
def _fixed_cycle_init(self, cyclevars, variable_name=None):
self.raw_cycle_vars = map(Variable, cyclevars)
#: True if the environment is just an overlay
#: the environment this environment is linked to if it is an overlay
rv = object.__new__(self.__class__)
for key, value in args.iteritems():