Crate hornbeam

Source
Expand description

§What this top-level crate does

This crate provides an abstraction layer over both the interpreter and the compile-time template compiler, allowing to switch between them at will in a project (or more likely: use the hot-reloadable interpreter in development and the high-performance compiler for production).

Currently this crate only supports interpreted mode.

Macros§

initialise_template_manager
On startup, must be called with the identifier of the manager. Note that the manager uses lazy_static! and thus must be initialised without any potential for thread races!
interpreter_params
interpreter_setters
lazy_static
make_template_manager
Makes a template manager. The syntax within the macro resembles a static ref binding so that the effect of the macro is more obvious…
render_template_string

Structs§

Params

Functions§

is_hot_reload_enabled
new_template_manager
INVOKED BY MACRO; don’t use manually (no point).

Type Aliases§

TemplateError
TemplateManager