def _init_filters(self): Template._init_filters(self) # Make sure the include filter comes after the match filter if self.loader: self.filters.remove(self._include) self.filters += [self._match] if self.loader: self.filters.append(self._include)
def __init__( self, source, filepath=None, filename=None, loader=None, encoding=None, lookup="strict", allow_exec=False, delims=("{%", "%}", "{#", "#}"), ): self.delimiters = delims Template.__init__( self, source, filepath=filepath, filename=filename, loader=loader, encoding=encoding, lookup=lookup )
def __init__(self, source, filepath=None, filename=None, loader=None, encoding=None, lookup='strict', allow_exec=True): Template.__init__(self, source, filepath=filepath, filename=filename, loader=loader, encoding=encoding, lookup=lookup, allow_exec=allow_exec) self.add_directives(self.DIRECTIVE_NAMESPACE, self)
def __init__(self, source, filepath=None, filename=None, loader=None, encoding=None, lookup='strict', allow_exec=False, delims=('{%', '%}', '{#', '#}')): self.delimiters = delims Template.__init__(self, source, filepath=filepath, filename=filename, loader=loader, encoding=encoding, lookup=lookup)
def _init_filters(self): Template._init_filters(self) # Make sure the include filter comes after the match filter self.filters.remove(self._include) self.filters += [self._match, self._include]
def _prepare(self, stream): return Template._prepare( self, self._extract_includes(self._interpolate_attrs(stream)))
def _prepare(self, stream, inlined=None): return Template._prepare(self, self._extract_includes( self._interpolate_attrs(stream)), inlined=inlined)
def _prepare(self, stream): return Template._prepare(self, self._extract_includes(self._interpolate_attrs(stream)) )
def _prepare(self, stream, inlined=None): return Template._prepare( self, self._extract_includes(self._interpolate_attrs(stream)), inlined=inlined)