[−][src]Trait liquid::compiler::ParseBlock
A trait for creating custom custom block-size tags ({% if something %}{% endif %}
).
This is a simple type alias for a function.
This function will be called whenever the parser encounters a block and returns
a new Renderable
based on its parameters. The received parameters specify the name
of the block, the argument Tokens passed to
the block, a Vec of all Elements inside the block and
the global Language
.
Required methods
fn parse(
&self,
tag_name: &str,
arguments: TagTokenIter,
block: TagBlock,
options: &Language
) -> Result<Box<dyn Renderable + 'static>, Error>
&self,
tag_name: &str,
arguments: TagTokenIter,
block: TagBlock,
options: &Language
) -> Result<Box<dyn Renderable + 'static>, Error>
Implementors
impl ParseBlock for BoxedBlockParser
[src]
fn parse(
&self,
tag_name: &str,
arguments: TagTokenIter,
tokens: TagBlock,
options: &Language
) -> Result<Box<dyn Renderable + 'static>, Error>
[src]
&self,
tag_name: &str,
arguments: TagTokenIter,
tokens: TagBlock,
options: &Language
) -> Result<Box<dyn Renderable + 'static>, Error>