class Liquid::Tokenizer
Defined in:
liquid/tokenizer.cr
Constant Summary
-
AnyStartingTag =
/#{TagStart}|#{VariableStart}/
-
PartialTemplateParser =
/#{TagStart}.*?#{TagEnd}|#{VariableStart}.*?#{VariableIncompleteEnd}/m
-
QuotedFragment =
/#{QuotedString}|(?:[^\s,\|'"]|#{QuotedString})+/
-
QuotedString =
/"[^"]*"|'[^']*'/
-
TagAttributes =
/(\w[\w-]*)\s*\:\s*(#{QuotedFragment})/
-
TagEnd =
/\%\}/
-
TagStart =
/(?<!\\)\{\%/
-
TemplateParser =
/(#{PartialTemplateParser}|#{AnyStartingTag})/m
-
VariableEnd =
/\}\}/
-
VariableIncompleteEnd =
/\}\}?/
-
VariableParser =
/\[[^\]]+\]|#{VariableSegment}+\??/
-
VariableSegment =
/[\w\-]/
-
VariableStart =
/(?<!\\)\{\{/
Class Method Summary
Class Method Detail