Skip to content

Commit 29b2d7f

Browse files
authored
Merge pull request #138 from timstallmann/patch-1
Specify how to disable Jinja support in docs
2 parents 9045eaa + 41ec1ba commit 29b2d7f

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

docs/index.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ or alternatively if you have pip installed::
2121
$ pip install Flask-Babel
2222

2323
Please note that Flask-Babel requires Jinja 2.5. If you are using an
24-
older version you will have to upgrade or disable the Jinja support.
24+
older version you will have to upgrade or disable the Jinja support
25+
(see configuration).
2526

2627

2728
Configuration
@@ -37,7 +38,8 @@ object after configuring the application::
3738
app.config.from_pyfile('mysettings.cfg')
3839
babel = Babel(app)
3940

40-
The babel object itself can be used to configure the babel support
41+
To disable jinja support, include ``configure_jinja=False`` in the Babel
42+
constructor call. The babel object itself can be used to configure the babel support
4143
further. Babel has the following configuration values that can be used to
4244
change some internal defaults:
4345

0 commit comments

Comments
 (0)