Liquex.Parser.Tag (liquex v0.10.2) View Source
Helper methods for parsing tags
Link to this section Summary
Functions
Parse close tags
Read to end of a line within a liquid tag. Reads to end of line ("\r" and/or "\n") or to a closing tag "%}".
Parse tag with no expression
Parse open tags
Parse basic tag with no arguments
Link to this section Functions
Specs
close_tag(NimbleParsec.t()) :: NimbleParsec.t()
Parse close tags
Examples
* "%}"
* "-%} "
Specs
end_liquid_line(NimbleParsec.t()) :: NimbleParsec.t()
Read to end of a line within a liquid tag. Reads to end of line ("\r" and/or "\n") or to a closing tag "%}".
Specs
expression_tag(NimbleParsec.t(), String.t()) :: NimbleParsec.t()
Parse tag with no expression
Examples
* "{% if a == 5 %}"
* "{% elsif b >= 10 and a < 4 %}"
Specs
liquid_tag_directive(NimbleParsec.t(), String.t()) :: NimbleParsec.t()
Specs
open_tag(NimbleParsec.t()) :: NimbleParsec.t()
Parse open tags
Examples
* "{%"
* "{%-"
Specs
tag_directive(NimbleParsec.t(), String.t()) :: NimbleParsec.t()
Parse basic tag with no arguments
Examples
* "{% break %}"
* "{% endfor %}"