This library provides python Flask utilities and static assets for rendering Wikimedia UI elements
Project description
This library provides python Flask utilities and static assets for rendering
OOJS-UI.
# Example
```python
from flask import Flask, render_template
from flask_oojsui import build_static_blueprint
app = Flask(__name__)
@app.route('/')
def root():
# This template uses assets from OOJS-UI
return render_template("index.html")
# Adds static assets for OOJS-UI to path
app.register_blueprint(build_static_blueprint("oojsui", __name__))
app.run(port=8080, debug=True)
```
OOJS-UI.
# Example
```python
from flask import Flask, render_template
from flask_oojsui import build_static_blueprint
app = Flask(__name__)
@app.route('/')
def root():
# This template uses assets from OOJS-UI
return render_template("index.html")
# Adds static assets for OOJS-UI to path
app.register_blueprint(build_static_blueprint("oojsui", __name__))
app.run(port=8080, debug=True)
```
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
flask-oojsui-0.0.1.tar.gz
(1.3 MB
view hashes)
Built Distribution
Close
Hashes for flask_oojsui-0.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0266de2a25a76add8ce87675c2a31ad49760c86f452830bece9b97170e3d7afd |
|
MD5 | fada0d7e0b67d03d66154b7e2738aff5 |
|
BLAKE2b-256 | 6fb0bfa26f80a4e47e38e140147e5888e23ba4a379b43f3b75f911db8292ef0f |