Skip to content
This repository has been archived by the owner on Feb 7, 2022. It is now read-only.

wikimedia/flask-oojsui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Example

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)

About

Static assets for oojs-ui for use in flask

Resources

License

Code of conduct

Stars

Watchers

Forks