Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JohnTheodore/3e13ac13a1a8251e1adaf87f0661efba to your computer and use it in GitHub Desktop.
Save JohnTheodore/3e13ac13a1a8251e1adaf87f0661efba to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
import jinja2
import os
foo = jinja2.Environment(trim_blocks=True, autoescape=False)
foo.loader = jinja2.FileSystemLoader(os.path.abspath('/tmp'))
bar = foo.get_template('/custodian/email/jinja_template.j2')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment