

def render(self, **context):
    self.code_builder._compile()
    globals_dict = {
        '__builtins__': self.default_context,
    }
    globals_dict.update(context)
    namespace = self.code_builder._exec(globals_dict)
    self.render_function = namespace[self.func_name]
    html = self.render_function()
    return self.cleanup_extra_whitespaces(html)

dataset/ETHPy150Open mozillazg/bustard/bustard/template.py Template.render/original