Expand description
HTML handling
Structs§
- Component
Arguments - A component can take various arguments (to pass down to its children), which are then later compiled into Rust function arguments - for example
- CssApi
Wrapper - Dom
- The document model, similar to HTML. This is a create-only structure, you don’t actually read anything back
- Dynamic
XmlComponent - Component that was created from a XML node (instead of being registered from Rust code). Necessary to
- Filtered
Component Arguments - Html
Extracted Config - Configuration options extracted from HTML meta tags
- Styled
Dom - XmlComponent
- XmlComponent
Map - Holds all XML components - builtin components
- XmlNode
- Represents one XML node tag
- XmlRender
Options
Enums§
- Compile
Error - Error that can happen from the translation from XML code to Rust code - stringified, since it is only used for printing and is not exposed in the public API
- Component
Parse Error - Image
Type Info - Render
DomError
Traits§
- XmlComponent
Trait - Specifies a component that reacts to a parsed XML node
Functions§
- apply_
html_ config - Apply extracted configuration to the document and rendering options
- clean_
html_ for_ rendering - Clean up HTML by removing elements that can’t be rendered
- inline_
all_ css - Process and inline all CSS in the document
- new_
dynxml_ from_ kuchiki - Create a DynamicXmlComponent from a kuchiki NodeRef
- parse_
component_ nodes - Transform component nodes into
- process_
html_ for_ rendering - Main function to process HTML for rendering
- register_
components - Convert DynamicXmlComponents to XmlComponents and register them
- to_
pdf_ ops - Converts the InlineText to a sequence of PDF operations for direct rendering
Type Aliases§
- XmlText
Content - (Unparsed) text content of an XML node, such as the “Hello” in
<button>Hello</button>.