def app_config_js(): from app import _app_config_js response = _app_config_js() js = response[0] with open('www/js/app_config.js', 'w') as f: f.write(js)
def app_config_js(): """ Render app_config.js to file. """ from app import _app_config_js response = _app_config_js() js = response[0] with open('www/js/app_config.js', 'w') as f: f.write(js)