module Liquid

Defined in:

liquid/any.cr
liquid/blocks.cr
liquid/codegen_visitor.cr
liquid/context.cr
liquid/embed.cr
liquid/exceptions.cr
liquid/expressions.cr
liquid/parser.cr
liquid/regex.cr
liquid/render_visitor.cr
liquid/template.cr
liquid/version.cr
liquid/visitor.cr

Constant Summary

CMP = /(?:#{TYPE_OR_VAR}) ?(?:#{OPERATOR}) ?(?:#{TYPE_OR_VAR})/
EXPR = /\s*(?<left>#{VAR}) ?(?<op>#{OPERATOR}) ?(?<right>#{TYPE})\s*/
FILTER = /#{VAR}(?:: ?#{TYPE_OR_VAR}(?:, ?#{TYPE_OR_VAR})*)?/
FILTERED = /#{TYPE_OR_VAR}(?:\s?\|\s?#{FILTER})+/
FLOAT = /#{INT}\.[0-9]+/
GCMP = /(?<left>#{TYPE_OR_VAR}) ?(?<op>#{OPERATOR}) ?(?<right>#{TYPE_OR_VAR})/
GFILTER = /(?<filter>#{VAR})(?:: ?(?<args>#{TYPE_OR_VAR}(?:, ?#{TYPE_OR_VAR})*))?/
GFILTERED = /(?<first>#{TYPE_OR_VAR})(\s?\|\s?(#{FILTER}))+/
GFLOAT = /(?<floatval>#{FLOAT})/
GINT = /(?<intval>#{INT})/
GSTRING = /^"(?<str>[^"]*)"$/
GVAR = /[a-z_][a-z_0-9]*(\.[a-z_][a-z_0-9]*)*/
INT = /-?[1-9][0-9]*/
MULTIPLE_EXPR = /(?: (?<op>or|and) )?(?<expr>#{CMP})/
OPERATOR = /==|!=|<=|>=|<|>/
STRING = /"[^"]*"/
TYPE = /(?:#{STRING})|(?:#{FLOAT})|(?:#{INT})/
TYPE_OR_VAR = /(?:#{TYPE})|(?:#{VAR})/
VAR = /[a-z_][a-z_0-9]*(?:\.[a-z_][a-z_0-9]*)*/
VERSION = "0.4.1"

Macro Summary

Macro Detail

macro embed(filename, io_name, *args) #

[View source]