Skip to main content

Module core

Module core 

Source
Expand description

The core engine: the node tree, the renderer and escaping.

Every type is reachable by two paths — molt::core::Element and molt::core::element::Element are the same item — and both are stable API. The short one is what the examples use; the module path is there for the helpers that have no re-export (molt::core::escape::escape_text, molt::core::tags::is_void).

Re-exports§

pub use attribute::Attribute;
pub use element::Element;
pub use node::Markup;
pub use node::Node;
pub use render::Render;
pub use render::RenderOptions;

Modules§

attribute
HTML attributes.
element
The Element type and its fluent builder API.
escape
HTML and XML escaping.
node
The node tree.
render
Rendering options and the Render trait.
tags
The two tag sets the renderer branches on.
url_policy
Script-URL check for attributes the browser navigates to or fetches.