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.2.tar.gz
(1.3 MB
view hashes)
Built Distribution
Close
Hashes for flask_oojsui-0.0.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf3cc9fb26e5d2115b955c1f0d54a856e7c50fffa875f1ee2fd2d81af8dfdd8a |
|
MD5 | baadb6072084bf6b76696268a0e658c4 |
|
BLAKE2b-256 | ced56706a5a678313e5b65d1c50a2481f95cf57fed09dcbc42b7541a1a059eb2 |