Struct liquid_interpreter::Context [−][src]
pub struct Context<'g> { /* fields omitted */ }Processing context for a template.
Methods
impl<'g> Context<'g>[src]
impl<'g> Context<'g>pub fn new() -> Self[src]
pub fn new() -> SelfCreate a default Context.
See ContextBuilder for more control.
pub fn get_filter<'b>(&'b self, name: &str) -> Option<&'b FilterValue>[src]
pub fn get_filter<'b>(&'b self, name: &str) -> Option<&'b FilterValue>Grab a FilterValue.
pub fn interrupt(&self) -> &InterruptState[src]
pub fn interrupt(&self) -> &InterruptStateAccess the block's InterruptState.
pub fn interrupt_mut(&mut self) -> &mut InterruptState[src]
pub fn interrupt_mut(&mut self) -> &mut InterruptStateAccess the block's InterruptState.
pub fn cycles<'a>(&'a mut self) -> CycleState<'a, 'g> where
'g: 'a, [src]
pub fn cycles<'a>(&'a mut self) -> CycleState<'a, 'g> where
'g: 'a, See cycle tag.
pub fn stack(&self) -> &Stack[src]
pub fn stack(&self) -> &StackAccess the current Stack.
pub fn stack_mut<'a>(&'a mut self) -> &'a mut Stack<'g> where
'g: 'a, [src]
pub fn stack_mut<'a>(&'a mut self) -> &'a mut Stack<'g> where
'g: 'a, Access the current Stack.
pub fn run_in_scope<RvalT, FnT>(&mut self, f: FnT) -> RvalT where
FnT: FnOnce(&mut Context) -> RvalT, [src]
pub fn run_in_scope<RvalT, FnT>(&mut self, f: FnT) -> RvalT where
FnT: FnOnce(&mut Context) -> RvalT, Sets up a new stack frame, executes the supplied function and then tears the stack frame down before returning the function's result to the caller.