Now using Jinja2 directly (without Flask context). This allows to use the module without having to run the actual flask app (avoiding app context issues)