MCPcopy Index your code
hub / github.com/fluentpython/example-code-2e / render

Method render

21-async/mojifinder/bottle.py:3414–3420  ·  view source on GitHub ↗

Render the template using keyword arguments as local variables.

(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

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
3423class StplSyntaxError(TemplateError): pass

Callers

nothing calls this directly

Calls 2

executeMethod · 0.95
updateMethod · 0.45

Tested by

no test coverage detected