comparison markup/plugin.py @ 77:f5ec6d4a61e4 trunk

* Simplify implementation of the individual XPath tests (use closures instead of callable classes) * Add support for using `select("@*")` in `py:attrs` directives (#10).
author cmlenz
date Thu, 13 Jul 2006 12:32:11 +0000
parents ee092ccb3af1
children 47bbd9d2a5af
comparison
equal deleted inserted replaced
76:85f70ec37112 77:f5ec6d4a61e4
37 yield item 37 yield item
38 yield Stream.END, tag_name, ('<string>', 0, 0) 38 yield Stream.END, tag_name, ('<string>', 0, 0)
39 if element.tail: 39 if element.tail:
40 yield Stream.TEXT, element.tail, ('<string>', 0, 0) 40 yield Stream.TEXT, element.tail, ('<string>', 0, 0)
41 41
42
42 class TemplateEnginePlugin(object): 43 class TemplateEnginePlugin(object):
43 """Implementation of the plugin API.""" 44 """Implementation of the plugin API."""
44 45
45 def __init__(self, extra_vars_func=None, options=None): 46 def __init__(self, extra_vars_func=None, options=None):
46 if options is None: 47 if options is None:
Copyright (C) 2012-2017 Edgewall Software