diff genshi/template/markup.py @ 830:de82830f8816 experimental-inline

inline branch: synced with trunk@1038.
author cmlenz
date Fri, 13 Mar 2009 20:04:26 +0000
parents 1837f39efd6f
children 09cc3627654c
line wrap: on
line diff
--- a/genshi/template/markup.py
+++ b/genshi/template/markup.py
@@ -356,7 +356,7 @@
                         pre_end -= 1
                     inner = _strip(stream)
                     if pre_end > 0:
-                        inner = self._match(inner, ctxt, end=pre_end)
+                        inner = self._match(inner, ctxt, end=pre_end, **vars)
                     content = self._include(chain([event], inner, tail), ctxt)
                     if 'not_buffered' not in hints:
                         content = list(content)
@@ -371,7 +371,7 @@
 
                     # Recursively process the output
                     template = _apply_directives(template, directives, ctxt,
-                                                 **vars)
+                                                 vars)
                     for event in self._match(self._flatten(template, ctxt,
                                                            **vars),
                                              ctxt, start=idx + 1, **vars):
Copyright (C) 2012-2017 Edgewall Software