diff genshi/template/markup.py @ 629:cae74e2637c6

Revert second part of [726] (error on includes when no loader specified), which broke I18n extraction via the Babel plugin.
author cmlenz
date Tue, 04 Sep 2007 11:51:58 +0000
parents 6a37018199fd
children e0f12a6f3612
line wrap: on
line diff
--- a/genshi/template/markup.py
+++ b/genshi/template/markup.py
@@ -142,10 +142,6 @@
                     dirmap[(depth, tag)] = (directives, len(stream), strip)
 
                 if tag in self.XINCLUDE_NAMESPACE:
-                    if self._include not in self.filters:
-                        raise TemplateSyntaxError('Include found but no '
-                                                  'template loader specified',
-                                                  self.filepath, *pos[1:])
                     if tag.localname == 'include':
                         include_href = new_attrs.get('href')
                         if not include_href:
Copyright (C) 2012-2017 Edgewall Software