Skip to main content

Crate hemplate_runtime

Crate hemplate_runtime 

Source
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 error::RenderError;
pub use escape::HtmlEscape;

Modules§

error
Error types. Error type for rendering already-generated templates.
escape
HTML escape utility. HTML escaping utility.
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.