# HG changeset patch # User cmlenz # Date 1156500526 0 # Node ID 58284b6b000955a4a5de24d5946f46eee7cf5df0 # Parent d7c0a7d65783bbba72bf82063e727cf863e6a5b7 * Removed storage of substream in `MatchDirective`, because it's already being stored in the match templates (related to #39). * Updated changelog. diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -6,9 +6,13 @@ variables that are defined but set to `None`. This also means that local variables can override built-ins even if the local variable are set to `None` (ticket #36). + * The plugin implementation now makes more functions available for use inside + templates: XML(), HTML(), defined(), and value-of(). These are mostly for + migration from Kid. * The parsing of `py:with` directives has been improved: you can now assign to multiple names, and semicolons inside string literals are treated as expected. + * Generator expressions can now be used in template expressions (ticket #16). Version 0.2 diff --git a/markup/template.py b/markup/template.py --- a/markup/template.py +++ b/markup/template.py @@ -444,19 +444,17 @@ """ - __slots__ = ['path', 'stream'] + __slots__ = ['path'] ATTRIBUTE = 'path' def __init__(self, value, filename=None, lineno=-1, offset=-1): Directive.__init__(self, None, filename, lineno, offset) self.path = Path(value, filename, lineno) - self.stream = [] def __call__(self, stream, ctxt, directives): - self.stream = list(stream) ctxt._match_templates.append((self.path.test(ignore_context=True), - self.path, self.stream, directives)) + self.path, list(stream), directives)) return [] def __repr__(self):