from app import app from app.utils.render import render from flask import send_file, url_for @app.route('/chat') def chat(): return render('chat.html', scripts=[ '-scripts/trigger_menu.js', '-scripts/editor.js']) @app.route('/v5shoutbox_worker.js') def v5shoutbox_worker_js(): return send_file('static/scripts/v5shoutbox_worker.js')