enable jinja2 loopcontrols extension #38

Closed
wants to merge 1 commit into
from

Projects

None yet

2 participants

@irvingpop
Contributor

Any downside to enabling this by default for users? makes life much easier.

@irvingpop irvingpop Update src/flask/app.py
enable jinja2 loopcontrols extension
67e72be
@kamalgill
Owner

Great suggestion, but we should avoid modifying Flask core to add the extension. Instead, we should enable the extension on app creation (in src/application/init.py), similar to the approach discussed at http://flask.pocoo.org/mailinglist/archive/2011/6/7/how-to-include-custom-jinja-extensions/#df27559dedb5b6771423dd4c4355b652

@irvingpop
Contributor

Much better! Change works on my machine, I'll make a new pull request soon.

@irvingpop irvingpop closed this Dec 27, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment