Templating - Jinja2Templates¶
You can use the Jinja2Templates class to render Jinja templates.
Read more about it in the FastAPI docs for Templates.
You can import it directly from fastapi.templating:
from fastapi.templating import Jinja2Templates
::: fastapi.templating.Jinja2Templates