Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

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

branch: master

examples

latest commit 079aebc048
dantezhu authored April 12, 2014
Octocat-spinner-32 examples examples April 12, 2014
Octocat-spinner-32 .gitignore Initial commit August 30, 2012
Octocat-spinner-32 README.md 修改一些名字 December 28, 2013
Octocat-spinner-32 flask_util_js.py version独立 February 18, 2014
Octocat-spinner-32 setup.py version独立 February 18, 2014
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'});
Something went wrong with that request. Please try again.