ASKBOT / askbot-devel

Askbot is a Django/Python Q&A forum. **Contributors README**: https://github.com/ASKBOT/askbot-devel#how-to-contribute. Commercial hosting of Askbot and support are available at https://askbot.com
Other
1.56k stars 627 forks source link

Improve jinja2 integration #814

Closed martin-bts closed 5 years ago

martin-bts commented 5 years ago

When we started moving away from Coffin we didn't outright remove and replace it. Over time we accumulated some unused and unreachable code while on the other hand evolving our code towards how Engines Templates and Environments are supposed to be used. This involves Askbot configuration i.e. settings.py, which increases the risk of things breaking along the way.

This PR is mostly cleaning up and beautifying of Jinja2 related code and configurations. The other noteworthy thing is that this PR replaces pystache. Instead of pystache we now use Jinja2 to render settings.py.

martin-bts commented 5 years ago

Rebased to current 0.11.x