From 12a10df916e57c8c41d521da382dfd4f338d3026 Mon Sep 17 00:00:00 2001 From: Zhiee Jhia Ooi Date: Tue, 15 Aug 2023 16:11:48 -0500 Subject: [PATCH 1/2] Fixed template file path --- src/watts/template.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/watts/template.py b/src/watts/template.py index 1c0b8ae..b12d9ee 100644 --- a/src/watts/template.py +++ b/src/watts/template.py @@ -53,7 +53,7 @@ def __call__(self, params: Parameters, filename: Optional[PathLike] = None): # Default rendered template filename if filename is None: name = self.template_file.name - out_path = self.template_file.with_name(f'{name}{self.suffix}') + out_path = Path(f'{name}{self.suffix}') else: out_path = Path(filename) From a2dbb66de25b5c5dc7ffce2d3607e0d93d1107d3 Mon Sep 17 00:00:00 2001 From: Paul Romano Date: Sun, 20 Aug 2023 09:51:44 -0500 Subject: [PATCH 2/2] Update CHANGELOG.md --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7dc8d8e..a6accca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. specifies the directory created in the database ([#107](https://github.com/watts-dev/watts/pull/107)) +### Fixed + +* Fixed path for templates rendered from the `extra_template_inputs` argument in + `PluginGeneric` and subclasses + ([#109](https://github.com/watts-dev/watts/pull/109)) + ## [0.5.1] ### Added