def _parse_error(self, msg, name, text=None):
    'Method used to handle errors encountered during the parse process\n        in the _parse() method.\n        '
    line = (self.line or 'unknown')
    if (text is not None):
        msg += ('\n  [%% %s %%]' % text)
    raise TemplateException('parse', ('%s line %s: %s' % (name, line, msg)))
Method used to handle errors encountered during the parse process
in the _parse() method.
def _parse_error(self, msg, name, text=None):
    'Method used to handle errors encountered during the parse process\n        in the _parse() method.\n        '
    line = (self.line or 'unknown')
    if (text is not None):
        msg += ('\n  [%% %s %%]' % text)
    raise TemplateException('parse', ('%s line %s: %s' % (name, line, msg)))