- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 31 for templating (0.09 sec)
-
docs/en/docs/reference/templating.md
# Templating - `Jinja2Templates` You can use the `Jinja2Templates` class to render Jinja templates. Read more about it in the [FastAPI docs for Templates](https://fastapi.tiangolo.com/advanced/templates/). You can import it directly from `fastapi.templating`: ```python from fastapi.templating import Jinja2Templates ```
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Apr 18 19:53:19 UTC 2024 - 365 bytes - Viewed (0) -
docs/em/docs/advanced/templates.md
/// /// tip 📣 `response_class=HTMLResponse` 🩺 🎚 🔜 💪 💭 👈 📨 🔜 🕸. /// /// note | "📡 ℹ" 👆 💪 ⚙️ `from starlette.templating import Jinja2Templates`. **FastAPI** 🚚 🎏 `starlette.templating` `fastapi.templating` 🏪 👆, 👩💻. ✋️ 🌅 💪 📨 👟 🔗 ⚪️➡️ 💃. 🎏 ⏮️ `Request` & `StaticFiles`. /// ## ✍ 📄 ⤴️ 👆 💪 ✍ 📄 `templates/item.html` ⏮️: ```jinja hl_lines="7"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 2.1K bytes - Viewed (0) -
docs/en/docs/advanced/templates.md
/// /// note | "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 you, the developer. But most of the available responses come directly from Starlette. The same with `Request` and `StaticFiles`. ///
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 3.3K bytes - Viewed (0) -
docs_src/templates/tutorial001.py
from fastapi import 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") templates = Jinja2Templates(directory="templates") @app.get("/items/{id}", response_class=HTMLResponse) async def read_item(request: Request, id: str):
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Dec 26 20:12:34 UTC 2023 - 521 bytes - Viewed (0) -
docs/zh/docs/advanced/templates.md
并且,在此之前,`request`对象是作为context的一部分以键值对的形式传递的。 /// /// tip | "提示" 通过声明 `response_class=HTMLResponse`,API 文档就能识别响应的对象是 HTML。 /// /// note | "技术细节" 您还可以使用 `from starlette.templating import Jinja2Templates`。 **FastAPI** 的 `fastapi.templating` 只是为开发者提供的快捷方式。实际上,绝大多数可用响应都直接继承自 Starlette。 `Request` 与 `StaticFiles` 也一样。 /// ## 编写模板 编写模板 `templates/item.html`,代码如下: ```jinja hl_lines="7"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 2.8K bytes - Viewed (0) -
guava/src/com/google/common/html/HtmlEscapers.java
/** * {@code Escaper} instances suitable for strings to be included in HTML attribute values and * most elements' text contents. When possible, avoid manual escaping by using templating * systems and high-level APIs that provide autoescaping. * One Google-authored templating system available for external use is <a * href="https://developers.google.com/closure/templates/">Closure Templates</a>. *
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Jul 19 16:02:36 UTC 2024 - 3K bytes - Viewed (0) -
docs/de/docs/advanced/templates.md
/// /// note | "Technische Details" Sie können auch `from starlette.templating import Jinja2Templates` verwenden. **FastAPI** bietet dasselbe `starlette.templating` auch via `fastapi.templating` an, als Annehmlichkeit für Sie, den Entwickler. Es kommt aber direkt von Starlette. Das Gleiche gilt für `Request` und `StaticFiles`. /// ## Templates erstellen
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 3.6K bytes - Viewed (0) -
docs/pt/docs/advanced/templates.md
/// /// note | "Detalhes Técnicos" Você também poderia usar `from starlette.templating import Jinja2Templates`. **FastAPI** fornece o mesmo `starlette.templating` como `fastapi.templating` apenas como uma conveniência para você, o desenvolvedor. Mas a maioria das respostas disponíveis vêm diretamente do Starlette. O mesmo acontece com `Request` e `StaticFiles`. ///
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 3.3K bytes - Viewed (0) -
docs/metrics/prometheus/grafana/node/minio-node.json
} ], "title": "IO Operations Waiting", "type": "timeseries" } ], "refresh": "", "schemaVersion": 39, "tags": [ "minio" ], "templating": { "list": [ { "current": { }, "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" },
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Jun 04 13:24:37 UTC 2024 - 22.4K bytes - Viewed (0) -
manifests/addons/dashboards/ztunnel-dashboard.gen.json
} ], "title": "Workload Manager", "type": "timeseries" } ], "refresh": "15s", "schemaVersion": 39, "templating": { "list": [ { "name": "datasource", "query": "prometheus", "type": "datasource" } ] }, "time": {
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri Jul 26 23:54:32 UTC 2024 - 17.3K bytes - Viewed (0)