BUG: fix #47.

@rkern I have not tested this throughly, but I could confirm it works with Jinja2. Can you confirm it works for your usecase ?

If that fixes it for you, I will add one test for it + ensure it does not break anything for our eggs.