pub trait Runtime {
    fn partials(&self) -> &dyn PartialStore;
fn name(&self) -> Option<KStringRef<'_>>;
fn roots(&self) -> BTreeSet<KStringCow<'_>>;
fn try_get(&self, path: &[ScalarCow<'_>]) -> Option<ValueCow<'_>>;
fn get(&self, path: &[ScalarCow<'_>]) -> Result<ValueCow<'_>>;
fn set_global(&self, name: KString, val: Value) -> Option<Value>;
fn set_index(&self, name: KString, val: Value) -> Option<Value>;
fn get_index<'a>(&'a self, name: &str) -> Option<ValueCow<'a>>;
fn registers(&self) -> &Registers; }
Expand description

State for rendering a template

Required methods

Partial templates for inclusion.

The name of the currently active template.

All available values

Recursively index into the stack.

Recursively index into the stack.

Sets a value in the global runtime.

Used by increment and decrement tags

Used by increment and decrement tags

Unnamed state for plugins during rendering

Implementations on Foreign Types

Implementors