fastapi_aad_auth.ui.jinja

Provide Jinja2 Helpers.

class fastapi_aad_auth.ui.jinja.Jinja2Templates(*args, **kwargs)[source]

templates = Jinja2Templates("templates")

return templates.TemplateResponse("index.html", {"request": request})

Initialise the templates and update the environment.

class fastapi_aad_auth.ui.jinja.PkgResourcesTemplateLoader[source]

Load jinja templates via pkg_resources.

static get_source(environment: jinja2.environment.Environment, template: str)[source]

Load the template via package resources.