Mercurial > genshi > mirror
comparison genshi/template/markup.py @ 690:1240ada13334 experimental-match-fastpaths
more code/comment clean up - make sure to retain match order
author | aflett |
---|---|
date | Sat, 15 Mar 2008 05:42:29 +0000 |
parents | 3d7288f373bd |
children | af57b12e3dd2 |
comparison
equal
deleted
inserted
replaced
687:3d7288f373bd | 690:1240ada13334 |
---|---|
296 | 296 |
297 # Recursively process the output | 297 # Recursively process the output |
298 template = _apply_directives(template, ctxt, directives) | 298 template = _apply_directives(template, ctxt, directives) |
299 remaining = match_set | 299 remaining = match_set |
300 if 'match_once' not in hints: | 300 if 'match_once' not in hints: |
301 # match has not been removed, so we need an exclusion matchset | 301 # match has not been removed, so we need an |
302 # exclusion matchset | |
302 remaining = match_set.with_exclusion(match_template) | 303 remaining = match_set.with_exclusion(match_template) |
303 | 304 |
304 body = self._exec(self._eval(self._flatten(template, ctxt), | 305 body = self._exec(self._eval(self._flatten(template, ctxt), |
305 ctxt), ctxt) | 306 ctxt), ctxt) |
306 for event in self._match(body, ctxt, remaining): | 307 for event in self._match(body, ctxt, remaining): |