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)
| 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 |
no test coverage detected