FastAPI · Class
Jinja2Templates
Jinja2Templates configures Jinja template rendering for FastAPI. Create it with a template directory, then use it in routes to return rendered HTML.
Last updated
Syntax
Jinja2Templates(directory, *, context_processors=None)
Jinja2Templates(*, env, context_processors=None)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
TemplateResponseHTMLResponseRequestStaticFilesurl_for