How to add context to HTMLResponse as you can do with TemplateResponse to insert content into the HTML site? Example with TemplateResponse:
return templates.TemplateResponse('index.html', context={'request': request, "Variable1": V1, "Variable2": V2})
And how to add the context here?:
@app.get("/")
def root():
return HTMLResponse(pkg_resources.resource_string(__name__, "index.html"))