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 details)
Built Distribution
File details
Details for the file flask-oojsui-0.0.3.tar.gz
.
File metadata
- Download URL: flask-oojsui-0.0.3.tar.gz
- Upload date:
- Size: 2.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c63b5a92dd03d873487f92e98dd1b2ddfe5acfd29254429494cf7e5f97289e4f |
|
MD5 | 17b18ef0695913a95b6aa2112a9be638 |
|
BLAKE2b-256 | 9d8dd849cd1a1073d2ca8112d133bbada577af8398a8994d54e84f045f8f0713 |
File details
Details for the file flask_oojsui-0.0.3-py2.py3-none-any.whl
.
File metadata
- Download URL: flask_oojsui-0.0.3-py2.py3-none-any.whl
- Upload date:
- Size: 3.0 MB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b41db452a7536b0ec494c8ca57fba6e1d0d5cca33e65d1f37c7ee3250c079f83 |
|
MD5 | 0e69c446b9f4d86f9a81245994b44985 |
|
BLAKE2b-256 | f5c64d247aae8d7cbdc228d877d91741df88dfef64a1d7c03dddb2e5f60a7fc1 |