[][src]Struct liquid::ParserBuilder

pub struct ParserBuilder<P = Partials> where
    P: PartialCompiler
{ /* fields omitted */ }

Methods

impl ParserBuilder<Partials>[src]

pub fn new() -> Self[src]

Create an empty Liquid parser

pub fn with_liquid() -> Self[src]

impl<P> ParserBuilder<P> where
    P: PartialCompiler
[src]

pub fn liquid(self) -> Self[src]

Create a Liquid parser with built-in Liquid features

pub fn liquid_tags(self) -> Self[src]

Register built-in Liquid tags

pub fn liquid_blocks(self) -> Self[src]

Register built-in Liquid blocks

pub fn liquid_filters(self) -> Self[src]

Register built-in Liquid filters

pub fn extra_filters(self) -> Self[src]

Register non-standard filters

pub fn jekyll_filters(self) -> Self[src]

Register non-standard filters

pub fn block<B: Into<BoxedBlockParser>>(
    self,
    name: &'static str,
    block: B
) -> Self
[src]

Inserts a new custom block into the parser

pub fn tag<T: Into<BoxedTagParser>>(self, name: &'static str, tag: T) -> Self[src]

Inserts a new custom tag into the parser

pub fn filter<F: Into<BoxedValueFilter>>(
    self,
    name: &'static str,
    filter: F
) -> Self
[src]

Inserts a new custom filter into the parser

pub fn partials<N: PartialCompiler>(self, partials: N) -> ParserBuilder<N>[src]

Set which partial-templates will be available.

pub fn build(self) -> Result<Parser>[src]

Create a parser

Trait Implementations

impl<P> Default for ParserBuilder<P> where
    P: PartialCompiler
[src]

Auto Trait Implementations

impl<P> Send for ParserBuilder<P> where
    P: Send

impl<P> Sync for ParserBuilder<P> where
    P: Sync

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: Any