Module: Liquid
- Defined in:
- lib/liquid.rb,
lib/liquid/tag.rb,
lib/liquid/drop.rb,
lib/liquid/block.rb,
lib/liquid/errors.rb,
lib/liquid/context.rb,
lib/liquid/tags/if.rb,
lib/liquid/document.rb,
lib/liquid/htmltags.rb,
lib/liquid/strainer.rb,
lib/liquid/tags/for.rb,
lib/liquid/template.rb,
lib/liquid/variable.rb,
lib/liquid/condition.rb,
lib/liquid/tags/case.rb,
lib/liquid/tags/cycle.rb,
lib/liquid/file_system.rb,
lib/liquid/tags/assign.rb,
lib/liquid/tags/unless.rb,
lib/liquid/tags/capture.rb,
lib/liquid/tags/comment.rb,
lib/liquid/tags/include.rb,
lib/liquid/tags/literal.rb,
lib/liquid/tags/ifchanged.rb,
lib/liquid/standardfilters.rb
Defined Under Namespace
Modules: StandardFilters Classes: ArgumentError, Assign, BlankFileSystem, Block, Capture, Case, Comment, Condition, Context, ContextError, Cycle, Document, Drop, ElseCondition, Error, FileSystemError, FilterNotFound, For, If, Ifchanged, Include, Literal, LocalFileSystem, StackLevelError, StandardError, Strainer, SyntaxError, TableRow, Tag, Template, Unless, Variable
Constant Summary collapse
- FilterSeparator =
/\|/
- ArgumentSeparator =
','
- FilterArgumentSeparator =
':'
- VariableAttributeSeparator =
'.'
- TagStart =
/\{\%/
- TagEnd =
/\%\}/
- VariableSignature =
/\(?[\w\-\.\[\]]\)?/
- VariableSegment =
/[\w\-]/
- VariableStart =
/\{\{/
- VariableEnd =
/\}\}/
- VariableIncompleteEnd =
/\}\}?/
- QuotedString =
/"[^"]*"|'[^']*'/
- QuotedFragment =
/#{QuotedString}|(?:[^\s,\|'"]|#{QuotedString})+/
- StrictQuotedFragment =
/"[^"]+"|'[^']+'|[^\s,\|,\:,\,]+/
- FirstFilterArgument =
/#{FilterArgumentSeparator}(?:#{StrictQuotedFragment})/
- OtherFilterArgument =
/#{ArgumentSeparator}(?:#{StrictQuotedFragment})/
- SpacelessFilter =
/^(?:'[^']+'|"[^"]+"|[^'"])*#{FilterSeparator}(?:#{StrictQuotedFragment})(?:#{FirstFilterArgument}(?:#{OtherFilterArgument})*)?/
- Expression =
/(?:#{QuotedFragment}(?:#{SpacelessFilter})*)/
- TagAttributes =
/(\w+)\s*\:\s*(#{QuotedFragment})/
- AnyStartingTag =
/\{\{|\{\%/
- PartialTemplateParser =
/#{TagStart}.*?#{TagEnd}|#{VariableStart}.*?#{VariableIncompleteEnd}/
- TemplateParser =
/(#{PartialTemplateParser}|#{AnyStartingTag})/
- VariableParser =
/\[[^\]]+\]|#{VariableSegment}+\??/
- LiteralShorthand =
/^(?:\{\{\{\s?)(.*?)(?:\s*\}\}\})$/