(self, *args, **kwargs)
| 1179 | self._undefined_to_none = undefined_to_none |
| 1180 | |
| 1181 | def __call__(self, *args, **kwargs): |
| 1182 | context = self._template.new_context(dict(*args, **kwargs)) |
| 1183 | consume(self._template.root_render_func(context)) |
| 1184 | rv = context.vars['result'] |
| 1185 | if self._undefined_to_none and isinstance(rv, Undefined): |
| 1186 | rv = None |
| 1187 | return rv |
| 1188 | |
| 1189 | |
| 1190 | @implements_iterator |
nothing calls this directly
no test coverage detected