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.3.tar.gz
(2.1 MB
view hashes)
Built Distribution
Close
Hashes for flask_oojsui-0.0.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b41db452a7536b0ec494c8ca57fba6e1d0d5cca33e65d1f37c7ee3250c079f83 |
|
MD5 | 0e69c446b9f4d86f9a81245994b44985 |
|
BLAKE2b-256 | f5c64d247aae8d7cbdc228d877d91741df88dfef64a1d7c03dddb2e5f60a7fc1 |