Struct liquid::ParserBuilder
source · pub struct ParserBuilder { /* private fields */ }
Implementations§
source§impl ParserBuilder
impl ParserBuilder
sourcepub fn with_liquid() -> Self
pub fn with_liquid() -> Self
Create a Liquid parser with built-in Liquid features
Register built-in Liquid tags
sourcepub fn liquid_blocks(self) -> Self
pub fn liquid_blocks(self) -> Self
Register built-in Liquid blocks
sourcepub fn liquid_filters(self) -> Self
pub fn liquid_filters(self) -> Self
Register built-in Liquid filters
sourcepub fn extra_filters(self) -> Self
pub fn extra_filters(self) -> Self
Register non-standard filters
sourcepub fn block<B: Into<BoxedBlockParser>>(
self,
name: &'static str,
block: B
) -> Self
pub fn block<B: Into<BoxedBlockParser>>(
self,
name: &'static str,
block: B
) -> Self
Inserts a new custom block into the parser
sourcepub fn tag<T: Into<BoxedTagParser>>(self, name: &'static str, tag: T) -> Self
pub fn tag<T: Into<BoxedTagParser>>(self, name: &'static str, tag: T) -> Self
Inserts a new custom tag into the parser
sourcepub fn filter<F: Into<BoxedValueFilter>>(
self,
name: &'static str,
filter: F
) -> Self
pub fn filter<F: Into<BoxedValueFilter>>(
self,
name: &'static str,
filter: F
) -> Self
Inserts a new custom filter into the parser
sourcepub fn include_source(self, includes: Box<dyn Include>) -> Self
pub fn include_source(self, includes: Box<dyn Include>) -> Self
Define the source for includes
Trait Implementations§
source§impl Clone for ParserBuilder
impl Clone for ParserBuilder
source§fn clone(&self) -> ParserBuilder
fn clone(&self) -> ParserBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for ParserBuilder
impl Default for ParserBuilder
source§fn default() -> ParserBuilder
fn default() -> ParserBuilder
Returns the “default value” for a type. Read more