diff options
author | monster <monster@ydb.tech> | 2022-07-07 14:41:37 +0300 |
---|---|---|
committer | monster <monster@ydb.tech> | 2022-07-07 14:41:37 +0300 |
commit | 06e5c21a835c0e923506c4ff27929f34e00761c2 (patch) | |
tree | 75efcbc6854ef9bd476eb8bf00cc5c900da436a2 /contrib/python/Jinja2/examples | |
parent | 03f024c4412e3aa613bb543cf1660176320ba8f4 (diff) | |
download | ydb-06e5c21a835c0e923506c4ff27929f34e00761c2.tar.gz |
fix ya.make
Diffstat (limited to 'contrib/python/Jinja2/examples')
-rw-r--r-- | contrib/python/Jinja2/examples/README.md | 5 | ||||
-rw-r--r-- | contrib/python/Jinja2/examples/hello/__init__.py | 0 | ||||
-rw-r--r-- | contrib/python/Jinja2/examples/hello/__main__.py | 12 | ||||
-rw-r--r-- | contrib/python/Jinja2/examples/hello/templates/hello | 1 |
4 files changed, 0 insertions, 18 deletions
diff --git a/contrib/python/Jinja2/examples/README.md b/contrib/python/Jinja2/examples/README.md deleted file mode 100644 index 59ab6badd82..00000000000 --- a/contrib/python/Jinja2/examples/README.md +++ /dev/null @@ -1,5 +0,0 @@ -# Примеры использования PackageLoader в Аркадии - -Добавляем шаблоны как ресурсы с помощью `RESOURCE_FILES`, не забываем указать `PREFIX`, а дальше можно использовать в коде `PackageLoader` как будто мы не в Аркадии. - -В папке `hello` лежит простой готовый пример. diff --git a/contrib/python/Jinja2/examples/hello/__init__.py b/contrib/python/Jinja2/examples/hello/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 --- a/contrib/python/Jinja2/examples/hello/__init__.py +++ /dev/null diff --git a/contrib/python/Jinja2/examples/hello/__main__.py b/contrib/python/Jinja2/examples/hello/__main__.py deleted file mode 100644 index 51b3d1e3d57..00000000000 --- a/contrib/python/Jinja2/examples/hello/__main__.py +++ /dev/null @@ -1,12 +0,0 @@ -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 deleted file mode 100644 index 73e9e1f5b6e..00000000000 --- a/contrib/python/Jinja2/examples/hello/templates/hello +++ /dev/null @@ -1 +0,0 @@ -Hello, {{ username }}! |