コンテンツにスキップ
per page, with , order by , clip by
Results of 1 - 3 of about 3 for Templating (0.004 sec.)
Templating - Jinja2Templates 11700
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 Jinja2T ... emplates ::: fastapi.templating.Jinja2Templates ...
https://man.mtool.work/fastapi/0.115/reference/templating/
Templates 9022
Templates Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . You can use any template engine you want with FastAPI . A common choice is Jinja2, the same one used by F ... port FastAPI , Request from fastapi.responses import HTMLResponse from fastapi.staticfiles import StaticFiles from fastapi.templating import Jinja2Templates app = FastAPI () app . mount ( "/static" , StaticFiles ( directory = "static" ), name = "static" ) ... ponse the docs UI will be able to know that the response will be HTML. Technical Details You could also use from starlette.templating import Jinja2Templates . FastAPI provides the same starlette.templating as fastapi.templating just as a convenience for yo ...
https://man.mtool.work/fastapi/0.115/advanced/templates/
Release Notes 7161
Release Notes Latest Changes 0.115.11 Fixes ? Add docs examples and tests (support) for Annotated custom validations, like AfterValidator , revert #13440 . PR #13442 by @tiangolo . New docs: Query Parameters and String Validations - Custom ... r docs/de/docs/reference/background.md . PR #10820 by @nilslindemann . ? Add German translation for docs/de/docs/reference/templating.md . PR #10842 by @nilslindemann . ? Add German translation for docs/de/docs/external-links.md . PR #10852 by @nilslindema ...
https://man.mtool.work/fastapi/0.115/release-notes/
PREV 1 NEXT