module Crinja::Resolver
Direct including types
Defined in:
runtime/resolver.crClass Method Summary
-
.resolve_attribute(name, object : Value) : Value
Resolves an objects attribute.
-
.resolve_attribute(name, value) : Value
Resolves an objects attribute.
-
.resolve_dig(name : String, object) : Value
Resolves a dig.
-
.resolve_dig(name : Value, value : Value) : Value
Resolves a dig.
-
.resolve_dig(name, object) : Value
Resolves a dig.
- .resolve_getattr(name : Value, value : Value) : Value
- .resolve_getattr(name, value) : Value
- .resolve_method(name, value : Value) : Callable | Callable::Proc?
- .resolve_method(name, object) : Callable | Callable::Proc?
- .resolve_with_hash_accessor(name : Value, value : Value) : Value
- .resolve_with_hash_accessor(name, value : Value) : Value
Instance Method Summary
- #call_filter(name : String, target : Value, varargs = [] of Value, kwargs = Variables.new) : Value
- #call_filter(name : String, target) : Value
- #execute_call(callable, varargs : Array(Value) = [] of Value, kwargs : Variables = Variables.new, target : Value? = nil) : Value
- #execute_call(callable : Callable | Callable::Proc, arguments : Arguments) : Value
-
#resolve(name : String) : Value
Resolves a variable in the current context.
- #resolve_callable(identifier) : Value
- #resolve_callable!(identifier : Callable | Callable::Proc) : Callable | Callable::Proc
- #resolve_callable!(identifier : Value) : Callable | Callable::Proc
Class Method Detail
Resolves an objects attribute. Tries .resolve_getattr
.
Analogous to getattr
in Jinja2.
Resolves an objects attribute. Tries .resolve_getattr
.
Analogous to getattr
in Jinja2.
Instance Method Detail
def call_filter(name : String, target : Value, varargs = [] of Value, kwargs = Variables.new) : Value
#
def execute_call(callable, varargs : Array(Value) = [] of Value, kwargs : Variables = Variables.new, target : Value? = nil) : Value
#