我们从Python开源项目中,提取了以下50个代码示例,用于说明如何使用jinja2.environment.Environment.__init__()。
def __init__(self, *args, **kwargs): Environment.__init__(self, *args, **kwargs) self.globals['range'] = safe_range self.binop_table = self.default_binop_table.copy() self.unop_table = self.default_unop_table.copy()
def __init__(self, args, kwargs): self._args = args self._kwargs = kwargs self._last_index = 0
def __init__(self, env): self._env = env
def __init__(self, env): SandboxedFormatterMixin.__init__(self, env) Formatter.__init__(self)
def __init__(self, env, escape): SandboxedFormatterMixin.__init__(self, env) EscapeFormatter.__init__(self, escape)