I've been using this library a lot for some documentation and I found myself wanting to customize Jinja a bit more and I ran into some bugs with the debug printing. This PR contains all the changes I made:
Added configuration options for adding filters, tests, globals, and policies
This should also take care of #16
Added the ability to configure the extra keyword arguments to Environment
Fixed debug printing on 3.7+ where urllib.url2pathname was moved to urllib.request.url2pathname
Removed hard coded assumption that templates are in a 'source' folder when debug printing and instead made them relative to jinja_base
Added :debug: usage to the tests to make sure it doesn't error anymore
I've been using this library a lot for some documentation and I found myself wanting to customize Jinja a bit more and I ran into some bugs with the debug printing. This PR contains all the changes I made:
Environment
urllib.url2pathname
was moved tourllib.request.url2pathname
jinja_base
:debug:
usage to the tests to make sure it doesn't error anymore