@html.route('/<project_name>/embed/embed-main.js', methods=['GET'])
def embed_main(project_name):
    project = Project.query.filter_by(name=project_name).first()
    if (not project):
        return render_template('error.html')
    return render_template('embed-main.js', project_name=project_name)
@html.route('/<project_name>/embed/embed-main.js', methods=['GET'])
def embed_main(project_name):
    project = Project.query.filter_by(name=project_name).first()
    if (not project):
        return render_template('error.html')
    return render_template('embed-main.js', project_name=project_name)