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

Method render

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

Source from the content-addressed store, hash-verified

3336 self.tpl = self.env.get_template(self.filename)
3337
3338 def render(self, *args, **kwargs):
3339 for dictarg in args: kwargs.update(dictarg)
3340 _defaults = self.defaults.copy()
3341 _defaults.update(kwargs)
3342 return self.tpl.render(**_defaults)
3343
3344 def loader(self, name):
3345 fname = self.search(name, self.lookup)

Callers

nothing calls this directly

Calls 3

updateMethod · 0.45
copyMethod · 0.45
renderMethod · 0.45

Tested by

no test coverage detected