Module: Liquid

Defined in:
lib/liquid.rb,
lib/liquid/tag.rb,
lib/liquid/drop.rb,
lib/liquid/i18n.rb,
lib/liquid/tags.rb,
lib/liquid/block.rb,
lib/liquid/const.rb,
lib/liquid/lexer.rb,
lib/liquid/usage.rb,
lib/liquid/utils.rb,
lib/liquid/errors.rb,
lib/liquid/parser.rb,
lib/liquid/context.rb,
lib/liquid/tags/if.rb,
lib/liquid/version.rb,
lib/liquid/document.rb,
lib/liquid/profiler.rb,
lib/liquid/tags/for.rb,
lib/liquid/tags/raw.rb,
lib/liquid/template.rb,
lib/liquid/variable.rb,
lib/liquid/condition.rb,
lib/liquid/registers.rb,
lib/liquid/tags/case.rb,
lib/liquid/tags/echo.rb,
lib/liquid/tokenizer.rb,
lib/liquid/block_body.rb,
lib/liquid/expression.rb,
lib/liquid/interrupts.rb,
lib/liquid/tags/break.rb,
lib/liquid/tags/cycle.rb,
lib/liquid/environment.rb,
lib/liquid/file_system.rb,
lib/liquid/tags/assign.rb,
lib/liquid/tags/render.rb,
lib/liquid/tags/unless.rb,
lib/liquid/deprecations.rb,
lib/liquid/forloop_drop.rb,
lib/liquid/range_lookup.rb,
lib/liquid/tag/disabler.rb,
lib/liquid/tags/capture.rb,
lib/liquid/tags/comment.rb,
lib/liquid/tags/include.rb,
lib/liquid/parse_context.rb,
lib/liquid/partial_cache.rb,
lib/liquid/tags/continue.rb,
lib/liquid/profiler/hooks.rb,
lib/liquid/tags/decrement.rb,
lib/liquid/tags/ifchanged.rb,
lib/liquid/tags/increment.rb,
lib/liquid/tags/table_row.rb,
lib/liquid/resource_limits.rb,
lib/liquid/standardfilters.rb,
lib/liquid/tag/disableable.rb,
lib/liquid/variable_lookup.rb,
lib/liquid/parser_switching.rb,
lib/liquid/template_factory.rb,
lib/liquid/strainer_template.rb,
lib/liquid/tablerowloop_drop.rb,
lib/liquid/parse_tree_visitor.rb,
lib/liquid/tags/inline_comment.rb

Defined Under Namespace

Modules: BlockBodyProfilingHook, Const, ContextProfilingHook, DocumentProfilingHook, ParserSwitching, StandardFilters, Tags, Usage, Utils Classes: Assign, BlankFileSystem, Block, BlockBody, Break, BreakInterrupt, Capture, Case, Comment, Condition, Context, Continue, ContinueInterrupt, Cycle, Decrement, Deprecations, Document, Drop, Echo, ElseCondition, Environment, Error, Expression, For, ForloopDrop, I18n, If, Ifchanged, Include, Increment, InlineComment, Interrupt, Lexer, LocalFileSystem, ParseContext, ParseTreeVisitor, Parser, PartialCache, Profiler, RangeLookup, Raw, Registers, Render, ResourceLimits, StrainerTemplate, TableRow, TablerowloopDrop, Tag, Template, TemplateFactory, Tokenizer, Unless, Variable, VariableLookup

Constant Summary collapse

FilterSeparator =
/\|/
ArgumentSeparator =
','
FilterArgumentSeparator =
':'
VariableAttributeSeparator =
'.'
WhitespaceControl =
'-'
TagStart =
/\{\%/
TagEnd =
/\%\}/
TagName =
/#|\w+/
VariableSignature =
/\(?[\w\-\.\[\]]\)?/
VariableSegment =
/[\w\-]/
VariableStart =
/\{\{/
VariableEnd =
/\}\}/
VariableIncompleteEnd =
/\}\}?/
QuotedString =
/"[^"]*"|'[^']*'/
QuotedFragment =
/#{QuotedString}|(?:[^\s,\|'"]|#{QuotedString})+/o
TagAttributes =
/(\w[\w-]*)\s*\:\s*(#{QuotedFragment})/o
AnyStartingTag =
/#{TagStart}|#{VariableStart}/o
PartialTemplateParser =
/#{TagStart}.*?#{TagEnd}|#{VariableStart}.*?#{VariableIncompleteEnd}/om
TemplateParser =
/(#{PartialTemplateParser}|#{AnyStartingTag})/om
VariableParser =
/\[(?>[^\[\]]+|\g<0>)*\]|#{VariableSegment}+\??/o
RAISE_EXCEPTION_LAMBDA =
->(_e) { raise }
HAS_STRING_SCANNER_SCAN_BYTE =
StringScanner.instance_methods.include?(:scan_byte)
ArgumentError =
Class.new(Error)
ContextError =
Class.new(Error)
FileSystemError =
Class.new(Error)
StandardError =
Class.new(Error)
SyntaxError =
Class.new(Error)
StackLevelError =
Class.new(Error)
MemoryError =
Class.new(Error)
ZeroDivisionError =
Class.new(Error)
FloatDomainError =
Class.new(Error)
UndefinedVariable =
Class.new(Error)
UndefinedDropMethod =
Class.new(Error)
UndefinedFilter =
Class.new(Error)
MethodOverrideError =
Class.new(Error)
DisabledError =
Class.new(Error)
InternalError =
Class.new(Error)
TemplateEncodingError =
Class.new(Error)
VERSION =
"5.7.0"
StaticRegisters =

Alias for backwards compatibility

Registers