MCPcopy Index your code
hub / github.com/nodejs/node / make_module

Method make_module

tools/inspector_protocol/jinja2/environment.py:1066–1073  ·  view source on GitHub ↗

This method works like the :attr:`module` attribute when called without arguments but it will evaluate the template on every call rather than caching it. It's also possible to provide a dict which is then used as context. The arguments are the same as for the :meth:

(self, vars=None, shared=False, locals=None)

Source from the content-addressed store, hash-verified

1064 vars, shared, self.globals, locals)
1065
1066 def make_module(self, vars=None, shared=False, locals=None):
1067 """This method works like the :attr:`module` attribute when called
1068 without arguments but it will evaluate the template on every call
1069 rather than caching it. It's also possible to provide
1070 a dict which is then used as context. The arguments are the same
1071 as for the :meth:`new_context` method.
1072 """
1073 return TemplateModule(self, self.new_context(vars, shared, locals))
1074
1075 def make_module_async(self, vars=None, shared=False, locals=None):
1076 """As template module creation can invoke template code for

Callers 1

_get_default_moduleMethod · 0.95

Calls 2

new_contextMethod · 0.95
TemplateModuleClass · 0.70

Tested by

no test coverage detected