struct Liquid::Expression

Overview

This represent a liquid expression used in under {{ }} or passed to statements like if, case, etc... including filter and their arguments.

The Expression is reentrant and doesn't store any state besides the compiled expression.

To evaluate a expression call the evaluate method with the desired Context.

Defined in:

liquid/expression.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(expression : String) #

[View source]

Instance Method Detail

def ==(other : self) #

[View source]
def apply_operators(ctx : Context, stack : Stack) : Any #

[View source]
def eval(ctx : Context) : Any #

[View source]
def expression : String #

[View source]
def expression_error(ctx : Context, message : String) #

[View source]
def to_s(io : IO) #
Description copied from struct Struct

Same as #inspect(io).


[View source]