MCPcopy
hub / github.com/pallets/jinja / from_module_dict

Method from_module_dict

src/jinja2/environment.py:1234–1245  ·  view source on GitHub ↗

Creates a template object from a module. This is used by the module loader to create a template object. .. versionadded:: 2.4

(
        cls,
        environment: Environment,
        module_dict: t.MutableMapping[str, t.Any],
        globals: t.MutableMapping[str, t.Any],
    )

Source from the content-addressed store, hash-verified

1232
1233 @classmethod
1234 def from_module_dict(
1235 cls,
1236 environment: Environment,
1237 module_dict: t.MutableMapping[str, t.Any],
1238 globals: t.MutableMapping[str, t.Any],
1239 ) -> "Template":
1240 """Creates a template object from a module. This is used by the
1241 module loader to create a template object.
1242
1243 .. versionadded:: 2.4
1244 """
1245 return cls._from_namespace(environment, module_dict, globals)
1246
1247 @classmethod
1248 def _from_namespace(

Callers 1

loadMethod · 0.80

Calls 1

_from_namespaceMethod · 0.80

Tested by

no test coverage detected