Struct liquid_interpreter::ContextBuilder [−][src]
pub struct ContextBuilder<'g> { /* fields omitted */ }Create processing context for a template.
Methods
impl<'g> ContextBuilder<'g>[src]
impl<'g> ContextBuilder<'g>pub fn new() -> Self[src]
pub fn new() -> SelfCreates a new, empty rendering context.
pub fn set_globals(self, values: &'g Globals) -> Self[src]
pub fn set_globals(self, values: &'g Globals) -> SelfInitialize the stack with the given globals.
pub fn set_filters(
self,
filters: &Arc<HashMap<&'static str, BoxedValueFilter>>
) -> Self[src]
pub fn set_filters(
self,
filters: &Arc<HashMap<&'static str, BoxedValueFilter>>
) -> SelfInitialize the context with the given filters.
pub fn build(self) -> Context<'g>[src]
pub fn build(self) -> Context<'g>Create the Context.
Trait Implementations
impl<'g> Default for ContextBuilder<'g>[src]
impl<'g> Default for ContextBuilder<'g>Auto Trait Implementations
impl<'g> !Send for ContextBuilder<'g>
impl<'g> !Send for ContextBuilder<'g>impl<'g> !Sync for ContextBuilder<'g>
impl<'g> !Sync for ContextBuilder<'g>