Instance Methodsliemeobn.elementary 0.3.1Elementary
renderFormatted
Renders the HTML content into a formatted string.
Html+Rendering.swift:17consuming func renderFormatted() -> String
Returns
The rendered HTML content.
Should only be used for testing and debugging purposes.
Other members in extension
Type members
Show implementation details (2)
Hide implementation details
Instance members
func environment<T>(TaskLocal<T>, T
) -> _ModifiedTaskLocal<T, Self> Sets the value of a
TaskLocal
for the duration of rendering the content.func render(
) -> String Renders the HTML content into a single string.
func render(into: some HTMLStreamWriter, chunkSize: Int
) async throws Renders the HTML content into a stream writer.
func renderAsync(
) async throws -> String Renders the HTML content into a single string asynchronously.