When to use (and not to use) Jinja2 loaders

Viewed 596

I'm working with Jinja2 for the first time. When would I want to specify a loader and when would I not want to specify a loader? I have seen examples using loaders and examples not using loaders, and I'm a bit confused.

I did read the documentation here: http://jinja.pocoo.org/docs/2.9/api/#loaders. I'm hopeful that you can explain it in a simpler way for me.

My end goal is to produce an HTML string that I can embed / insert in an email.

0 Answers
Related