Skip to main content

global

Function global 

Source
pub fn global() -> RwLockReadGuard<'static, TeraEngine>
Available on crate feature tera only.
Expand description

Acquire a read lock on the global template engine. Held only for the duration of one render — never store the guard across .await points or requests.

§Panics

Panics if init has not been called yet.