document Blueprint params

This commit is contained in:
vdanain 2019-06-02 19:40:47 +02:00 committed by David Lord
parent f7f1d9de3d
commit b89bf9e6d7
No known key found for this signature in database
GPG key ID: 7A1C87E3F5BC42A8

View file

@ -87,6 +87,24 @@ class Blueprint(_PackageBoundObject):
information.
.. versionadded:: 0.7
:param name: the name of the Blueprint
:param import_name: the name of the Blueprint package, __name__ most of the time.
The module folder will be the blueprint resource folder by default.
:param static_folder: you can serve your Blueprint static files by setting `static_folder`
to the folder with static files to serve at `static_url`.
The path can be absolute or relative to the Blueprint resource folder
:param static_url: the url to serve static files from. Defaults to ``static_folder``.
If your app's static_url is the same, your Blueprint's files won't be accessible.
:param template_folder: your blueprint can expose template from this folder by adding this path
to the search path of templates. The path can be absolute or relative to
the Blueprint resource folder.
:param url_prefix: url to prefix all the Blueprint routes.
:param subdomain: If set up, Blueprint routes will match on this subdomain.
:param url_defaults: Blueprint routes will use these default values for
view arguments.
:param root_path: you can specify a different root_path than the module folder.
to become your Blueprint resource folder.
"""
warn_on_modifications = False