Skip to content

Latest commit

 

History

History
34 lines (21 loc) · 839 Bytes

README.md

File metadata and controls

34 lines (21 loc) · 839 Bytes

Flask-TuiEditor

Flask extension for Tui-Editor

Quick start

NOTE: This is early alpha version. It provides simple integration Tui-Editor to your Flask application. See "example" folder to get it worked.

  1. pip install https://github.com/antoncom/flask-tuieditor/archive/master.zip
  2. Use example/simple/templates/index.html as an example for template editing.
  3. Use the code example below:
from flask import Flask, render_template
from flask_tuieditor import TuiEditor

app = Flask(__name__)

TuiEditor(app)


@app.route('/')
def index():
    return render_template('index.html')


if __name__ == '__main__':
    app.run(debug=True)

Special thanks