- Sort Score
- Num 10 results
- Language All
Results 11 - 13 of 13 for TemplateResponse (0.06 seconds)
-
docs/de/docs/advanced/templates.md
* Verwenden Sie die von Ihnen erstellten `templates`, um eine `TemplateResponse` zu rendern und zurückzugeben, übergeben Sie den Namen des Templates, das Requestobjekt und ein „Kontext“-<abbr title="Dictionary – Zuordnungstabelle: In anderen Sprachen auch Hash, Map, Objekt, Assoziatives Array genannt">Dictionary</abbr> mit...
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 17:58:09 GMT 2026 - 4.2K bytes - Click Count (0) -
docs/zh-hant/docs/advanced/templates.md
``` </div> ## 使用 `Jinja2Templates` { #using-jinja2templates } - 匯入 `Jinja2Templates`。 - 建立一個可重複使用的 `templates` 物件。 - 在會回傳模板的「*路徑操作(path operation)*」中宣告一個 `Request` 參數。 - 使用你建立的 `templates` 來渲染並回傳 `TemplateResponse`,傳入模板名稱、`request` 物件,以及在 Jinja2 模板中使用的「context」鍵值對字典。 {* ../../docs_src/templates/tutorial001_py310.py hl[4,11,15:18] *} /// note 在 FastAPI 0.108.0、Starlette 0.29.0 之前,`name` 是第一個參數。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:05:38 GMT 2026 - 3.3K bytes - Click Count (0) -
docs/ja/docs/advanced/templates.md
</div> ## `Jinja2Templates` の使用 { #using-jinja2templates } * `Jinja2Templates` をインポートします。 * 後で再利用できる `templates` オブジェクトを作成します。 * テンプレートを返す path operation に `Request` パラメータを宣言します。 * 作成した `templates` を使って `TemplateResponse` をレンダリングして返します。テンプレート名、リクエストオブジェクト、Jinja2 テンプレート内で使用するキーと値のペアからなる "context" の辞書を渡します。 {* ../../docs_src/templates/tutorial001_py310.py hl[4,11,15:18] *} /// note | 備考Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:07:17 GMT 2026 - 4.1K bytes - Click Count (0)