flask's util in javascript. such as url_for etc.
Python HTML
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
examples
.gitignore
README.md
flask_util_js.py
setup.py

README.md

flask_util_js

flask's util in javascript. such as url_for etc.

usage

install flask_util_js to your flask app
from flask import Flask
from flask_util_js import FlaskUtilJs

app = Flask(__name__)

fujs = FlaskUtilJs(app)
load flask_util.js in your html file
{{ flask_util_js.js }}
use url_for in your js code
var url = flask_util.url_for('a', {x:2, y:'/sdf'});