Skip to main content

Module views

Module views 

Source

Re-exports§

pub use totaljs::TotalJsEngine;
pub use api::VIEW;
pub use embed_provider::get_assets_provider;
pub use embed_provider::get_views_provider;
pub use embed_provider::register_assets_provider;
pub use embed_provider::register_views_provider;
pub use embed_provider::EmbeddedFileProvider;

Modules§

api
embed_provider
Embedded file provider trait and global registry.
minifier
HTML minifier that collapses unnecessary whitespace from rendered templates.
totaljs

Structs§

RequestMeta
Per-request metadata exposed to templates: @{url}, @{hostname}, and the @{mobile} boolean. Built from the incoming request.
ViewEngine
Main ViewEngine that delegates to different implementations
ViewEngineBuilder
Builder for ViewEngine configuration

Traits§

ViewEngineImpl
Trait for view engine implementations

Functions§

is_mobile
Heuristic mobile-device detection from a User-Agent string, exposed to templates via @{mobile}.