Structuresliemeobn.elementary 0.4.3Elementary
_HTMLTuple3
HtmlBuilder+Tuples.swift:69struct _HTMLTuple3<V0, V1, V2> where V0 : HTML, V1 : HTML, V2 : HTML
struct _HTMLTuple3<V0, V1, V2> where V0 : HTML, V1 : HTML, V2 : HTML
import Elementary
protocol HTML<Tag>
A type that represents HTML content that can be rendered.
init(v0: V0, v1: V1, v2: V2)
static func _render<Renderer>(_ html: consuming `Self`, into renderer: inout Renderer, with context: consuming _RenderingContext) where Renderer : _HTMLRendering
static func _render<Renderer>(_ html: consuming `Self`, into renderer: inout Renderer, with context: consuming _RenderingContext) async throws where Renderer : _AsyncHTMLRendering
let v0: V0
let v1: V1
let v2: V2
static func _render<Renderer>(_ html: consuming Self, into renderer: inout Renderer, with context: consuming _RenderingContext) where Renderer : _HTMLRendering
static func _render<Renderer>(_ html: consuming Self, into renderer: inout Renderer, with context: consuming _RenderingContext) async throws where Renderer : _AsyncHTMLRendering
var content: Never { get }
func environment<T>(_ taskLocal: TaskLocal<T>, _ value: T) -> _ModifiedTaskLocal<T, Self> where T : Sendable
Sets the value of a TaskLocal
for the duration of rendering the content.
consuming func render() -> String
Renders the HTML content into a single string.
consuming func render(into writer: some HTMLStreamWriter, chunkSize: Int = 1024) async throws
Renders the HTML content into a stream writer.
consuming func renderAsync() async throws -> String
Renders the HTML content into a single string asynchronously.
consuming func renderFormatted() -> String
Renders the HTML content into a formatted string.
consuming func render(into writer: @escaping (String) -> Void)
protocol Sendable