From 2ac064cd07c0126c7b71fe1150a77a3ab7cea651 Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Sat, 29 Oct 2022 12:31:34 +0200 Subject: [proxy] use common jinja templates subrepo as a standalone package module --- src/hydrilla/common_jinja_templates | 2 +- src/hydrilla/common_jinja_templates.py | 16 ---------------- 2 files changed, 1 insertion(+), 17 deletions(-) delete mode 100644 src/hydrilla/common_jinja_templates.py (limited to 'src/hydrilla') diff --git a/src/hydrilla/common_jinja_templates b/src/hydrilla/common_jinja_templates index a38750a..0e8ab5c 160000 --- a/src/hydrilla/common_jinja_templates +++ b/src/hydrilla/common_jinja_templates @@ -1 +1 @@ -Subproject commit a38750ae1e62af2320069264c30c8693a1a858b4 +Subproject commit 0e8ab5c2735b94166552ce80c18e523357a048ab 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 -# -# 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]) -- cgit v1.2.3