Struct liquid_interpreter::ContextBuilder
source · pub struct ContextBuilder<'g> { /* private fields */ }
Expand description
Create processing context for a template.
Implementations§
source§impl<'g> ContextBuilder<'g>
impl<'g> ContextBuilder<'g>
sourcepub fn set_globals(self, values: &'g dyn Globals) -> Self
pub fn set_globals(self, values: &'g dyn Globals) -> Self
Initialize the stack with the given globals.
sourcepub fn set_filters(
self,
filters: &Arc<HashMap<&'static str, BoxedValueFilter>>
) -> Self
pub fn set_filters(
self,
filters: &Arc<HashMap<&'static str, BoxedValueFilter>>
) -> Self
Initialize the context with the given filters.