aboutsummaryrefslogtreecommitdiff
path: root/deps/inja/test/jinja.py
diff options
context:
space:
mode:
Diffstat (limited to 'deps/inja/test/jinja.py')
-rw-r--r--deps/inja/test/jinja.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/deps/inja/test/jinja.py b/deps/inja/test/jinja.py
new file mode 100644
index 0000000..94bc24c
--- /dev/null
+++ b/deps/inja/test/jinja.py
@@ -0,0 +1,11 @@
+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"))