How to get the template source from Jinja2 Template object

Viewed 623

My program has a Jinja2 template loaded from a file.

t = env.get_template(filename)

Is it possible to get the template source (I mean the unrendered text, i.e. the contents of the file) from the t object?

1 Answers
Related