flask's util in javascript. such as url_for etc.
from flask import Flask
from flask_util_js import FlaskUtilJs
app = Flask(__name__)
fujs = FlaskUtilJs(app)
{{ flask_util_js.js }}
var url = flask_util.url_for('a', {x:2, y:'/sdf'});
flask's util in javascript. such as url_for etc.
from flask import Flask
from flask_util_js import FlaskUtilJs
app = Flask(__name__)
fujs = FlaskUtilJs(app)
{{ flask_util_js.js }}
var url = flask_util.url_for('a', {x:2, y:'/sdf'});