Crate rstml_component

Source

Macros§

html
write_html

Structs§

For
HtmlAttributeFormatter
A formatter for serializing HTML attribute values.
HtmlAttributesFormatter
HtmlFormatter
A formatter for serializing HTML nodes and content.
RawText
A struct for embedding raw, unsanitized HTML content.
Sanitizedsanitize
A wrapper struct for adding potentially unsanitized HTML content that will be sanitized before rendering.

Traits§

HtmlAttributeValue
A trait representing a value that can be used as an attribute value in HTML components.
HtmlAttributes
HtmlComponent
HtmlContent
A trait representing content that can be formatted into HTML representation.

Type Aliases§

SanitizeConfigsanitize

Attribute Macros§

component
Turns a function into a component function, arguments to the attribute macro are the visibility for the generated struct and the name of the struct. The function should return impl HtmlContent.

Derive Macros§

HtmlComponent