summaryrefslogtreecommitdiffstats
path: root/contrib/python/Jinja2/examples/hello
diff options
context:
space:
mode:
authorshadchin <[email protected]>2022-02-10 16:44:30 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:44:30 +0300
commit2598ef1d0aee359b4b6d5fdd1758916d5907d04f (patch)
tree012bb94d777798f1f56ac1cec429509766d05181 /contrib/python/Jinja2/examples/hello
parent6751af0b0c1b952fede40b19b71da8025b5d8bcf (diff)
Restoring authorship annotation for <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'contrib/python/Jinja2/examples/hello')
-rw-r--r--contrib/python/Jinja2/examples/hello/__main__.py24
-rw-r--r--contrib/python/Jinja2/examples/hello/templates/hello2
-rw-r--r--contrib/python/Jinja2/examples/hello/ya.make40
3 files changed, 33 insertions, 33 deletions
diff --git a/contrib/python/Jinja2/examples/hello/__main__.py b/contrib/python/Jinja2/examples/hello/__main__.py
index 51b3d1e3d57..cac1b7cc7f6 100644
--- a/contrib/python/Jinja2/examples/hello/__main__.py
+++ b/contrib/python/Jinja2/examples/hello/__main__.py
@@ -1,12 +1,12 @@
-import sys
-
-from jinja2 import Environment, PackageLoader
-
-
-env = Environment(
- loader=PackageLoader("hello", "templates"),
-)
-
-username = sys.argv[1] if len(sys.argv) > 1 else "Anonymous"
-
-print(env.get_template("hello").render(username=username))
+import sys
+
+from jinja2 import Environment, PackageLoader
+
+
+env = Environment(
+ loader=PackageLoader("hello", "templates"),
+)
+
+username = sys.argv[1] if len(sys.argv) > 1 else "Anonymous"
+
+print(env.get_template("hello").render(username=username))
diff --git a/contrib/python/Jinja2/examples/hello/templates/hello b/contrib/python/Jinja2/examples/hello/templates/hello
index 73e9e1f5b6e..413e3cd737b 100644
--- a/contrib/python/Jinja2/examples/hello/templates/hello
+++ b/contrib/python/Jinja2/examples/hello/templates/hello
@@ -1 +1 @@
-Hello, {{ username }}!
+Hello, {{ username }}!
diff --git a/contrib/python/Jinja2/examples/hello/ya.make b/contrib/python/Jinja2/examples/hello/ya.make
index 3ad10dba1f7..3991dbf126a 100644
--- a/contrib/python/Jinja2/examples/hello/ya.make
+++ b/contrib/python/Jinja2/examples/hello/ya.make
@@ -1,20 +1,20 @@
-PY3_PROGRAM(jinja2-hello)
-
-OWNER(shadchin)
-
-PEERDIR(
- contrib/python/Jinja2
-)
-
-PY_SRCS(
- NAMESPACE hello
- __init__.py
- __main__.py
-)
-
-RESOURCE_FILES(
- PREFIX contrib/python/Jinja2/examples/hello/
- templates/hello
-)
-
-END()
+PY3_PROGRAM(jinja2-hello)
+
+OWNER(shadchin)
+
+PEERDIR(
+ contrib/python/Jinja2
+)
+
+PY_SRCS(
+ NAMESPACE hello
+ __init__.py
+ __main__.py
+)
+
+RESOURCE_FILES(
+ PREFIX contrib/python/Jinja2/examples/hello/
+ templates/hello
+)
+
+END()