Skip to content

Commit e4ebf67

Browse files
committed
Rename jinja directory and template to avoid duplicate naming
Signed-off-by: Federico Busetti <[email protected]>
1 parent 2be1ffc commit e4ebf67

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

src/http_app/routes/hello.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88

99
@router.get("/", response_class=HTMLResponse, include_in_schema=False)
1010
async def hello(request: Request):
11-
return templates.TemplateResponse("list_books.html", {"request": request})
11+
return templates.TemplateResponse("hello.html", {"request": request})

src/http_app/templates.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
from starlette.templating import Jinja2Templates
44

5-
templates = Jinja2Templates(directory=Path(__file__).parent.joinpath("templates"))
5+
templates = Jinja2Templates(directory=Path(__file__).parent.joinpath("jinja_templates"))

0 commit comments

Comments
 (0)