blob: 94bc24c52b2cc8ae835763ed3655107f65c61709 [file] [log] [blame]
from jinja2 import Environment, PackageLoader, select_autoescape
if __name__ == '__main__':
env = Environment(
loader=PackageLoader("jinja"),
autoescape=select_autoescape()
)
template = env.get_template("example.txt")
print(template.render(name="Jeff"))