

def render(self, path, **kwargs):

    def set_resources(**kwargs):
        if (path not in self._resource_dict):
            self._resource_list.append(kwargs)
            self._resource_dict[path] = kwargs
        elif (self._resource_dict[path] != kwargs):
            raise ValueError('set_resources called with different resources for the same template')
        return ''
    return self.render_string(path, set_resources=set_resources, **self)

dataset/ETHPy150Open RobotWebTools/rosbridge_suite/rosbridge_server/src/tornado/web.py TemplateModule.render/VarMisuse@93/130 `kwargs`->`self`