Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentsarago committed Mar 29, 2024
1 parent 5ed605c commit f607296
Show file tree
Hide file tree
Showing 3 changed files with 153 additions and 93 deletions.
6 changes: 2 additions & 4 deletions docs/src/advanced/customization.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,8 @@ templates_location = (
]
)

templates = Jinja2Templates(
directory="",
loader=jinja2.ChoiceLoader(templates_location),
) # type: ignore
jinja2_env = jinja2.Environment(loader=jinja2.ChoiceLoader(templates_location))
templates = Jinja2Templates(env=jinja2_env)

ogc_api = Endpoints(templates=templates)
app.include_router(ogc_api.router)
Expand Down
Loading

0 comments on commit f607296

Please sign in to comment.