module Crinja::Resolver

Direct including types

Defined in:

runtime/resolver.cr

Class Method Summary

Instance Method Summary

Class Method Detail

def self.resolve_attribute(name, object : Value) : Value #

Resolves an objects attribute. Tries .resolve_getattr. Analogous to getattr in Jinja2.


[View source]
def self.resolve_attribute(name, value) : Value #

Resolves an objects attribute. Tries .resolve_getattr. Analogous to getattr in Jinja2.


[View source]
def self.resolve_dig(name : String, object) : Value #

Resolves a dig.


[View source]
def self.resolve_dig(name : Value, value : Value) : Value #

Resolves a dig.


[View source]
def self.resolve_dig(name, object) : Value #

Resolves a dig.


[View source]
def self.resolve_getattr(name : Value, value : Value) : Value #

[View source]
def self.resolve_getattr(name, value) : Value #

[View source]
def self.resolve_method(name, value : Value) : Callable | Callable::Proc? #

[View source]
def self.resolve_method(name, object) : Callable | Callable::Proc? #

[View source]
def self.resolve_with_hash_accessor(name : Value, value : Value) : Value #

[View source]
def self.resolve_with_hash_accessor(name, value : Value) : Value #

[View source]

Instance Method Detail

def call_filter(name : String, target : Value, varargs = [] of Value, kwargs = Variables.new) : Value #

[View source]
def call_filter(name : String, target) : Value #

[View source]
def execute_call(callable, varargs : Array(Value) = [] of Value, kwargs : Variables = Variables.new, target : Value? = nil) : Value #

[View source]
def execute_call(callable : Callable | Callable::Proc, arguments : Arguments) : Value #

[View source]
def resolve(name : String) : Value #

Resolves a variable in the current context.


[View source]
def resolve_callable(identifier) : Value #

[View source]
def resolve_callable!(identifier : Callable | Callable::Proc) : Callable | Callable::Proc #

[View source]
def resolve_callable!(identifier : Value) : Callable | Callable::Proc #

[View source]