{ "info": { "author": "Philip Xu", "author_email": "pyx@xrefactor.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Internet :: WWW/HTTP :: Dynamic Content", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "=================================================\nFlask-SimpleMDE - a Flask extension for SimpleMDE\n=================================================\n\nFlask-SimpleMDE is an extension to `Flask`_ that helps integrate `SimpleMDE\nMarkdown Editor`_ to your Flask application.\n\n\n.. _Flask: http://flask.pocoo.org/\n.. _SimpleMDE Markdown Editor: https://simplemde.com/\n\n\nQuick Start\n===========\n\n\n0. Installation\n\n .. code-block:: sh\n\n pip install Flask-SimpleMDE\n\n\n1. Configuration\n\n .. code-block:: python\n\n from flask import Flask, render_template\n from flask.ext.simplemde import SimpleMDE\n\n app = Flask(__name__)\n app.config['SIMPLEMDE_JS_IIFE'] = True\n app.config['SIMPLEMDE_USE_CDN'] = True\n SimpleMDE(app)\n\n @app.route('/')\n def hello():\n return render_template('hello.html')\n\n if __name__ == '__main__':\n app.run(debug=True)\n\n\n2. In :code:`templates/hello.html`:\n\n .. code-block:: jinja\n\n \n \n \n \n Flask-SimpleMDE example\n {{ simplemde.css }}\n {{ simplemde.js }}\n \n \n \n {{ simplemde.load }}\n \n \n\n\n3. Profit!\n\n\nHow It Works\n============\n\nOnce registered, this extension provides a template variable called\n:code:`simplemde`, it has:\n\n- a property named :code:`css` that will be rendered as HTML :code:`` tag\n to the SimpleMDE stylesheet either from free CDN or be served from a bundled\n blueprint, also called :code:`simplemde`.\n\n .. code-block:: jinja\n\n {{ simplemde.css }}\n\n- a property named :code:`js` that will be rendered as HTML :code:`