Skip to main content

Module render

Module render 

Source
Expand description

Rendering options and the Render trait.

Ports core/RenderOptions.swift and the render half of core/HTMLTag.swift.

WINGED_RUST_SPEC.md §2 claims Winged-Swift has a protocol HTMLRenderable. It does not — the only protocol in that library is Layout. The real design is a class hierarchy whose single overridable primitive is write(into:options:indentLevel:), and that is what Render::write_into ports. Everything else is a provided method on top of it, so the whole tree renders into one buffer with one allocation.

Structs§

RenderOptions
How a node tree is turned into markup.

Traits§

Render
Anything that can be written as HTML.