- Sort Score
- Num 10 results
- Language All
Results 21 - 30 of 808 for shtml (0.01 seconds)
-
fastapi/openapi/docs.py
})""" if init_oauth: html += f""" ui.initOAuth({json.dumps(jsonable_encoder(init_oauth))}) """ html += """ </script> </body> </html> """ return HTMLResponse(html) def get_redoc_html( *, openapi_url: Annotated[ str, Doc( """ The OpenAPI URL that ReDoc should load and use.Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 10.1K bytes - Click Count (0) -
docs/zh/docs/advanced/templates.md
通过声明 `response_class=HTMLResponse`,API 文档就能识别响应的对象是 HTML。 /// /// note | 技术细节 您还可以使用 `from starlette.templating import Jinja2Templates`。 **FastAPI** 的 `fastapi.templating` 只是为开发者提供的快捷方式。实际上,绝大多数可用响应都直接继承自 Starlette。 `Request` 与 `StaticFiles` 也一样。 /// ## 编写模板 编写模板 `templates/item.html`,代码如下: ```jinja hl_lines="7" {!../../docs_src/templates/templates/item.html!} ``` ### 模板上下文 在包含如下语句的html中:Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Oct 11 17:48:49 GMT 2025 - 2.7K bytes - Click Count (0) -
docs/en/docs/advanced/templates.md
/// ## Writing templates { #writing-templates } Then you can write a template at `templates/item.html` with, for example: ```jinja hl_lines="7" {!../../docs_src/templates/templates/item.html!} ``` ### Template Context Values { #template-context-values } In the HTML that contains: {% raw %} ```jinja Item ID: {{ id }} ``` {% endraw %}Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 3.5K bytes - Click Count (0) -
compat/maven-embedder/src/site/apt/logging.apt
/ {{{https://codehaus-plexus.github.io/plexus-containers/plexus-container-default/apidocs/org/codehaus/plexus/logging/Logger.html}Logger}}. Starting with Maven 3.1.0: * Maven supports SLF4J API logging API too, ie {{{http://slf4j.org/apidocs/org/slf4j/LoggerFactory.html}LoggerFactory}} / {{{http://slf4j.org/apidocs/org/slf4j/Logger.html}Logger}},Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 4.1K bytes - Click Count (0) -
guava/src/com/google/common/html/HtmlEscapers.java
* * <p>HTML escaping is particularly tricky: For example, <a * href="https://www.w3.org/TR/html4/types.html#h-6.2">some elements' text contents must not be HTML * escaped</a>. As a result, it is impossible to escape an HTML document correctly without * domain-specific knowledge beyond what {@code HtmlEscapers} provides. We strongly encourage the * use of HTML templating systems. * * @author Sven Mawson
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sat Dec 21 03:10:51 GMT 2024 - 3K bytes - Click Count (0) -
docs_src/websockets/tutorial002_an_py310.py
from fastapi import ( Cookie, Depends, FastAPI, Query, WebSocket, WebSocketException, status, ) from fastapi.responses import HTMLResponse app = FastAPI() html = """ <!DOCTYPE html> <html> <head> <title>Chat</title> </head> <body> <h1>WebSocket Chat</h1> <form action="" onsubmit="sendMessage(event)">
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Mar 18 12:29:59 GMT 2023 - 2.8K bytes - Click Count (0) -
docs_src/websockets/tutorial002_py310.py
from fastapi import ( Cookie, Depends, FastAPI, Query, WebSocket, WebSocketException, status, ) from fastapi.responses import HTMLResponse app = FastAPI() html = """ <!DOCTYPE html> <html> <head> <title>Chat</title> </head> <body> <h1>WebSocket Chat</h1> <form action="" onsubmit="sendMessage(event)">
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Mar 18 12:29:59 GMT 2023 - 2.7K bytes - Click Count (0) -
docs_src/websockets/tutorial002_py39.py
from fastapi import ( Cookie, Depends, FastAPI, Query, WebSocket, WebSocketException, status, ) from fastapi.responses import HTMLResponse app = FastAPI() html = """ <!DOCTYPE html> <html> <head> <title>Chat</title> </head> <body> <h1>WebSocket Chat</h1> <form action="" onsubmit="sendMessage(event)">
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 2.8K bytes - Click Count (0) -
docs_src/websockets/tutorial002_an_py39.py
from fastapi import ( Cookie, Depends, FastAPI, Query, WebSocket, WebSocketException, status, ) from fastapi.responses import HTMLResponse app = FastAPI() html = """ <!DOCTYPE html> <html> <head> <title>Chat</title> </head> <body> <h1>WebSocket Chat</h1> <form action="" onsubmit="sendMessage(event)">
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Mar 18 12:29:59 GMT 2023 - 2.8K bytes - Click Count (0) -
tests/test_local_docs.py
html = get_redoc_html(openapi_url="/docs", title="title") body_content = html.body.decode() assert redoc_js_url in body_content assert redoc_favicon_url in body_content def test_strings_in_custom_redoc(): redoc_js_url = "fake_redoc_file.js" redoc_favicon_url = "fake_redoc_file.png" html = get_redoc_html( openapi_url="/docs",
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sun Dec 20 18:50:00 GMT 2020 - 2.4K bytes - Click Count (0)