Expand description
hemplate-runtime: parser-free rendering contract for hemplate templates.
This crate contains only the symbols needed to render a generated hemplate
template on a target device. It has no parser or proc-macro dependencies,
so it compiles for constrained targets such as wasm32-unknown-unknown.
Applications normally use the hemplate facade crate, which re-exports this
runtime API and optionally enables the derive feature for
#[derive(Hemplate)].
Re-exports§
pub use context::AnimationContext;pub use context::AnimationValue;pub use context::Context;pub use context::Descriptor;pub use context::DocumentContext;pub use context::DocumentValue;pub use context::HtmlContext;pub use context::HtmlValue;pub use context::ResourceContext;pub use context::ResourceValue;pub use context::ScriptContext;pub use context::ScriptValue;pub use context::Srcset;pub use context::SrcsetContext;pub use context::SrcsetValue;pub use context::StyleContext;pub use context::StyleValue;pub use context::Trusted;pub use context::TrustedAnimation;pub use context::TrustedDocument;pub use context::TrustedHtml;pub use context::TrustedResource;pub use context::TrustedScript;pub use context::TrustedSrcset;pub use context::TrustedStyle;pub use context::TrustedUrl;pub use context::Url;pub use context::UrlContext;pub use context::UrlError;pub use context::UrlValue;pub use error::RenderError;pub use escape::HtmlEscape;pub use hidden::BooleanAttribute;pub use hidden::HiddenAttribute;pub use hidden::HiddenValue;
Modules§
- context
- Attribute contexts and the typed values that may enter them. Attribute contexts and the typed values that may enter them.
- error
- Error types. Error type for rendering already-generated templates.
- escape
- HTML escape utility. HTML escaping utility.
- hidden
- Typed values for HTML’s enumerated
hiddenattribute. Typed values for HTML’s enumeratedhiddenattribute. - render
- Codegen dispatch helpers for interpolation.
Codegen dispatch helpers for
{+ expr +}and{+= expr =+}.
Traits§
- Hemplate
- Trait for types that can render themselves as an HTML string.