Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/braingram/flask_ajaxify
Flask blueprint to make an object ajax accessible
https://github.com/braingram/flask_ajaxify
Last synced: 13 days ago
JSON representation
Flask blueprint to make an object ajax accessible
- Host: GitHub
- URL: https://github.com/braingram/flask_ajaxify
- Owner: braingram
- Created: 2013-01-22T03:16:14.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2013-01-24T13:30:58.000Z (almost 12 years ago)
- Last Synced: 2024-08-01T22:56:59.876Z (3 months ago)
- Language: Python
- Size: 156 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
An example of a flask blueprint that exports a python object
to be ajax accessibleimport flask_ajaxify
flask_ajaxify.test()open web browser and go to 127.0.0.1:5000/ajaxify/test
import flask
import flask_ajaxifysome_object = Foo()
app = flask.Flask(__name__)
flask_ajaxify.make_blueprint(some_object, app=app, register=True)
app.run()