Use appropriate template loaders when compressing for offline use.
Handle TemplateSyntaxError when loading with a TemplateLoader.
Put raise OfflineGenerationError back in place.
Revert "Handle TemplateSyntaxError when loading with a TemplateLoader."
This reverts commit 4319ae70d210fad2f05997df9ffca9cf5025308b.
Revert "Use appropriate template loaders when compressing for offline…
This reverts commit ec9a9c49b90bc5f2236f702d9d2c56dbb1031f12.
Use get_template from Django to load templates so that templates are
loaded with the appropriate template loader.
This pull request passes (merged eef07d8 into 3723a67).
I'd appreciate if you'd squash those commits to one commit.
Also, can you please add some tests? Thanks !
FWIW, I renamed the title of this PR to help triage existing issues. @mattpatey , we'd still love to hear from you to help get this merged :-)
@mattpatey give access for your repo and I will write tests.
Code doens't work, cuz jinja2 don't understand absolute paths of templates. Always raises TemplateNotFound. I create issue, please, vote: pallets/jinja#160.
Hi everyone, sorry for the long hiatus. This is something I did specific to my needs and if what @midiotthimble mentioned about jinja not working with this then it's clearly not complete. In any case chances are that I won't have the time to write the tests or fix the alleged jinja issue. Apologies for the premature pull request.
Fixed in #524.