def resjs(self, dest='static/res.js'):
        tmpl = self._read_file(
            'tmpl/res-ajax.js', 'tmpl/res-promise.js', 'tmpl/res-core.js')
        apiinfo = json.dumps(self.data, ensure_ascii=False, indent=4)
        rendered = Template(tmpl).render(apiinfo=apiinfo)
        self._save_file(dest, rendered)
generate res.js
dataset/ETHPy150Open guyskk/flask-restaction/flask_restaction/apiinfo.py/Gen.resjs