diff options
author | shadchin <shadchin@yandex-team.ru> | 2022-02-10 16:44:39 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:44:39 +0300 |
commit | e9656aae26e0358d5378e5b63dcac5c8dbe0e4d0 (patch) | |
tree | 64175d5cadab313b3e7039ebaa06c5bc3295e274 /contrib/python/Jinja2/examples/hello | |
parent | 2598ef1d0aee359b4b6d5fdd1758916d5907d04f (diff) | |
download | ydb-e9656aae26e0358d5378e5b63dcac5c8dbe0e4d0.tar.gz |
Restoring authorship annotation for <shadchin@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/python/Jinja2/examples/hello')
-rw-r--r-- | contrib/python/Jinja2/examples/hello/__main__.py | 24 | ||||
-rw-r--r-- | contrib/python/Jinja2/examples/hello/templates/hello | 2 | ||||
-rw-r--r-- | contrib/python/Jinja2/examples/hello/ya.make | 40 |
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 cac1b7cc7f6..51b3d1e3d57 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 413e3cd737b..73e9e1f5b6e 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 3991dbf126a..3ad10dba1f7 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() |