Function liquid::compiler::split_block
[−]
[src]
pub fn split_block<'a>(
tokens: &'a [Element],
delimiters: &[&str],
options: &LiquidOptions
) -> (&'a [Element], Option<BlockSplit<'a>>)
A sub-block aware splitter that will only split the token stream when it finds a delimter at the top level of the token stream, ignoring any it finds in nested blocks.
Returns a slice contaiing all elements before the delimiter, and
an optional BlockSplit
struct describing the delimiter and
trailing elements.