diff options
author | Wojtek Kosior <koszko@koszko.org> | 2022-10-29 12:31:34 +0200 |
---|---|---|
committer | Wojtek Kosior <koszko@koszko.org> | 2022-10-29 12:37:05 +0200 |
commit | 2ac064cd07c0126c7b71fe1150a77a3ab7cea651 (patch) | |
tree | 1f89579ae945d33bd6783e002aec06743fe71ccd | |
parent | 3a37caf3dddc479bcf524bce9f5ba2824e22f424 (diff) | |
download | haketilo-hydrilla-2ac064cd07c0126c7b71fe1150a77a3ab7cea651.tar.gz haketilo-hydrilla-2ac064cd07c0126c7b71fe1150a77a3ab7cea651.zip |
[proxy] use common jinja templates subrepo as a standalone package module
m--------- | src/hydrilla/common_jinja_templates | 0 | ||||
-rw-r--r-- | src/hydrilla/common_jinja_templates.py | 16 |
2 files changed, 0 insertions, 16 deletions
diff --git a/src/hydrilla/common_jinja_templates b/src/hydrilla/common_jinja_templates -Subproject a38750ae1e62af2320069264c30c8693a1a858b +Subproject 0e8ab5c2735b94166552ce80c18e523357a048a diff --git a/src/hydrilla/common_jinja_templates.py b/src/hydrilla/common_jinja_templates.py deleted file mode 100644 index 732db41..0000000 --- a/src/hydrilla/common_jinja_templates.py +++ /dev/null @@ -1,16 +0,0 @@ -# SPDX-License-Identifier: CC0-1.0 - -# Copyright (C) 2022 Wojtek Kosior <koszko@koszko.org> -# -# Available under the terms of Creative Commons Zero v1.0 Universal. - -import typing as t - -from jinja2 import PackageLoader, ChoiceLoader, BaseLoader - - -def loader() -> BaseLoader: - return PackageLoader(__package__, package_path='common_jinja_templates') - -def combine_with_loaders(loaders: t.Iterable[BaseLoader]) -> BaseLoader: - return ChoiceLoader([loader(), *loaders]) |