Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 506 Bytes

README.md

File metadata and controls

23 lines (15 loc) · 506 Bytes

This library provides python Flask utilities and static assets for rendering Wikimedia UI.

Example

from flask import Flask, render_template

from flask_wikimediaui import build_static_blueprint

app = Flask(__name__)


@app.route('/')
def root():
    # This template uses assets from WikimediaUI
    return render_template("index.html")

# Adds static assets for wikimedia-ui to path
app.register_blueprint(build_static_blueprint("wikimediaui", __name__))

app.run(port=8080, debug=True)