Skip to main content

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)
```

Project details


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)

Uploaded Source

Built Distribution

flask_oojsui-0.0.3-py2.py3-none-any.whl (3.0 MB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page