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

Method render

21-async/mojifinder/bottle.py:3314–3320  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

3312 self.tpl = Template(file=self.filename, **options)
3313
3314 def render(self, *args, **kwargs):
3315 for dictarg in args: kwargs.update(dictarg)
3316 self.context.vars.update(self.defaults)
3317 self.context.vars.update(kwargs)
3318 out = str(self.tpl)
3319 self.context.vars.clear()
3320 return out
3321
3322
3323class Jinja2Template(BaseTemplate):

Callers

nothing calls this directly

Calls 2

updateMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected