Small extension to make using rst easy
Project description
Easy integration of reStructuredText.
The :class:`ReStructuredText`class is used to control the
ReStructuredText integration to one or more Flask applications.
Depending on how you initialize the object it is usable right
away or will attach as needed to a Flask application.
There are two usage modes which work very similiar. One is binding
the instance to a very specific Flask application::
app = Flask(name)
rst = ReStructuredText(app)
The second possibility is to create the object once and configure the
application later to support it::
rst = ReStructuredText()
def create_app():
app = Flask(__name__)
rst.init_app(app)
return app
The :class:`ReStructuredText`class is used to control the
ReStructuredText integration to one or more Flask applications.
Depending on how you initialize the object it is usable right
away or will attach as needed to a Flask application.
There are two usage modes which work very similiar. One is binding
the instance to a very specific Flask application::
app = Flask(name)
rst = ReStructuredText(app)
The second possibility is to create the object once and configure the
application later to support it::
rst = ReStructuredText()
def create_app():
app = Flask(__name__)
rst.init_app(app)
return app
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Flask-reStructuredText-1.2.tar.gz
(12.5 kB
view hashes)
Close
Hashes for Flask-reStructuredText-1.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82fac85f26eac641730657b2208f7a05c554119cfe29e48b311c521b0317e40f |
|
MD5 | 455dca141ef847cae825cd414a58909d |
|
BLAKE2b-256 | 450d45e5a719c1dc053372262e06843b1414a368b0f0620f557e708d537c32f5 |