From 5cd25b16bfb73555086a6d167cbf246ee399a08b Mon Sep 17 00:00:00 2001 From: doublebyte Date: Tue, 29 Sep 2026 15:33:10 +0100 Subject: [PATCH 1/2] - Apply templates to the TileMatrixSets and TileMatrixSet resources. --- pygeoapi/api/tiles.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pygeoapi/api/tiles.py b/pygeoapi/api/tiles.py index afdde22b1..5249ff0b4 100644 --- a/pygeoapi/api/tiles.py +++ b/pygeoapi/api/tiles.py @@ -389,7 +389,7 @@ def tilematrixsets(api: API, }] if request.format == F_HTML: # render - content = render_j2_template(api.tpl_config, api.tpl_config, + content = render_j2_template(api.tpl_config, api.config['server']['templates'], 'tilematrixsets/index.html', tms, request.locale) return headers, HTTPStatus.OK, content @@ -436,7 +436,7 @@ def tilematrixset(api: API, } if request.format == F_HTML: # render - content = render_j2_template(api.tpl_config, api.tpl_config, + content = render_j2_template(api.tpl_config, api.config['server']['templates'], 'tilematrixsets/tilematrixset.html', tms, request.locale) return headers, HTTPStatus.OK, content From c027b0e5dd510eb6ad9ca3266e80e6afb8370a93 Mon Sep 17 00:00:00 2001 From: doublebyte Date: Tue, 29 Sep 2026 18:05:10 +0100 Subject: [PATCH 2/2] -fixed flak8 errors --- pygeoapi/api/tiles.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pygeoapi/api/tiles.py b/pygeoapi/api/tiles.py index 5249ff0b4..cb08459f5 100644 --- a/pygeoapi/api/tiles.py +++ b/pygeoapi/api/tiles.py @@ -389,7 +389,8 @@ def tilematrixsets(api: API, }] if request.format == F_HTML: # render - content = render_j2_template(api.tpl_config, api.config['server']['templates'], + content = render_j2_template(api.tpl_config, + api.config['server']['templates'], 'tilematrixsets/index.html', tms, request.locale) return headers, HTTPStatus.OK, content @@ -436,7 +437,8 @@ def tilematrixset(api: API, } if request.format == F_HTML: # render - content = render_j2_template(api.tpl_config, api.config['server']['templates'], + content = render_j2_template(api.tpl_config, + api.config['server']['templates'], 'tilematrixsets/tilematrixset.html', tms, request.locale) return headers, HTTPStatus.OK, content