Render the template using keyword arguments as local variables.
(self, *args, **kwargs)
| 3412 | return env |
| 3413 | |
| 3414 | def render(self, *args, **kwargs): |
| 3415 | """ Render the template using keyword arguments as local variables. """ |
| 3416 | env = {}; stdout = [] |
| 3417 | for dictarg in args: env.update(dictarg) |
| 3418 | env.update(kwargs) |
| 3419 | self.execute(stdout, env) |
| 3420 | return ''.join(stdout) |
| 3421 | |
| 3422 | |
| 3423 | class StplSyntaxError(TemplateError): pass |