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

ARRAY = /\[(#{SCALAR}(?:\s*,\s*#{SCALAR})*)\]/
BOOL = /(?:false)|(?:true)/
BOOLEXPR = /\s*?!?(?<bool>#{BOOL})\s*?/
BOOLOP = /(?:\s+(?:or|and)\s+)|(?:\s*(?:&&|\|\|)\s*)/
CMP = /(?:#{TYPE_OR_VAR})\s*(?:#{OPERATOR})\s*(?:#{TYPE_OR_VAR})/
CMPEXPR = /\s*?#{GCMP}\s*?/
DQSTRING = /"([^"]|\\")*"/
EXPR = /(?:#{CMPEXPR})|(?:#{BOOLEXPR})|(?:#{VAR})/
FILTER_ARG = TYPE_OR_VAR
FILTER_ARGS = /#{FILTER_ARG}(?:,\s*#{FILTER_ARG})*/
FLOAT = /-*[0-9]+\.[0-9]+/
GCMP = /(?<left>#{TYPE_OR_VAR})\s*(?<op>#{OPERATOR})\s*(?<right>#{TYPE_OR_VAR})/
GFILTER = /(?<filter>#{VAR})(?::\s*(?<args>#{FILTER_ARGS}))?/
GFILTERED = /(?<first>#{TYPE_OR_VAR})(\s*\|\s*(#{GFILTER}))+/
GFLOAT = /(?<floatval>#{FLOAT})/
GINT = /(?<intval>#{INT})/
GSTRING = /^(?:"(?<str>[^"]*)")|(?:'(?<str>[^']*)')$/
INT = /(?:0|(?:-*[1-9][0-9]*))/
MULTIPLE_EXPR = /(?:(?<boolop>(?:#{BOOLOP})))?(?<expr>#{EXPR})/
OPERATOR = /==|!=|<=|>=|<|>|contains/
SCALAR = /(?:#{STRING})|(?:#{FLOAT})|(?:#{INT})|(?:#{BOOL})/
SQSTRING = /'([^']|\\')*'/
STRING = /(?:#{DQSTRING})|(?:#{SQSTRING})/
TYPE = /(?:#{SCALAR})|(?:#{ARRAY})/
TYPE_OR_VAR = /(?:#{TYPE})|(?:#{VAR})/
VAR = /([-!]*(?<varbasename>[A-Za-z_]\w*)(?:(?<property>\.[A-Za-z_]\w*)|(?:\[(?<index>(?:#{STRING})|(?:#{INT})|(?1))\]))*\??)/
VERSION = "0.6.1"

Macro Summary

Macro Detail

macro embed(filename, io_name, *args) #

[View source]