# HG changeset patch # User cmlenz # Date 1271367868 0 # Node ID 3b16d762445b8a6a1ee8854d846547a99aa1a294 # Parent 27d210790d2719a3015de21f3f3578ebbd51c691 Default XInclude-included template class to the class of the including template. Closes #302. diff --git a/genshi/template/markup.py b/genshi/template/markup.py --- a/genshi/template/markup.py +++ b/genshi/template/markup.py @@ -243,7 +243,7 @@ cls = { 'xml': MarkupTemplate, 'text': NewTextTemplate - }[parse or 'xml'] + }.get(parse) or self.__class__ except KeyError: raise TemplateSyntaxError('Invalid value for "parse" ' 'attribute of include',