Skip to content

Commit 5cd25b1

Browse files
committed
- Apply templates to the TileMatrixSets and TileMatrixSet resources.
1 parent 0b38380 commit 5cd25b1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎pygeoapi/api/tiles.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ def tilematrixsets(api: API,
389389
}]
390390

391391
if request.format == F_HTML: # render
392-
content = render_j2_template(api.tpl_config, api.tpl_config,
392+
content = render_j2_template(api.tpl_config, api.config['server']['templates'],
393393
'tilematrixsets/index.html',
394394
tms, request.locale)
395395
return headers, HTTPStatus.OK, content
@@ -436,7 +436,7 @@ def tilematrixset(api: API,
436436
}
437437

438438
if request.format == F_HTML: # render
439-
content = render_j2_template(api.tpl_config, api.tpl_config,
439+
content = render_j2_template(api.tpl_config, api.config['server']['templates'],
440440
'tilematrixsets/tilematrixset.html',
441441
tms, request.locale)
442442
return headers, HTTPStatus.OK, content

0 commit comments

Comments
 (0)