Skip to content

Commit f607296

Browse files
committed
update docs
1 parent 5ed605c commit f607296

File tree

3 files changed

+153
-93
lines changed

3 files changed

+153
-93
lines changed

docs/src/advanced/customization.md

+2-4
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,8 @@ templates_location = (
6969
]
7070
)
7171

72-
templates = Jinja2Templates(
73-
directory="",
74-
loader=jinja2.ChoiceLoader(templates_location),
75-
) # type: ignore
72+
jinja2_env = jinja2.Environment(loader=jinja2.ChoiceLoader(templates_location))
73+
templates = Jinja2Templates(env=jinja2_env)
7674

7775
ogc_api = Endpoints(templates=templates)
7876
app.include_router(ogc_api.router)

0 commit comments

Comments
 (0)