Example #1
0
File: text.py Project: kamroot/mc27
 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
     )
Example #2
0
 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)
Example #3
0
 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)
Example #4
0
 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)
Example #5
0
 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)