def create_client(use_cdn=None, js_iife=None):
app = flask.Flask(__name__)
app.config['TESTING'] = True
if use_cdn is not None:
app.config['SIMPLEMDE_USE_CDN'] = use_cdn
if js_iife is not None:
app.config['SIMPLEMDE_JS_IIFE'] = js_iife
SimpleMDE(app)
@app.route('/')
def index():
return flask.render_template_string(TEMPLATE)
return app.test_client()
评论列表
文章目录