class

KrikriJinja::LoopCallable

Inherits KrikriJinja::Callable < Reference < Object

Callable loop for recursive for-loops: {{ loop(item.children) }}

Constructors

new(items : Array(KrikriJinja::AnyValue), body : Array(Nodes::Node), ctx : Context, engine : Engine, targets : Array(TargetSpec), parent : Nil | KrikriJinja::LoopCallable = nil, depth : Int32 = 1, sink : IO = IO::Memory.new, undefined : Undefined = Undefined.new)
Source

Instance methods

call(args : Array(AnyValue), _kwargs : Hash(String, AnyValue), ctx : Context) : AnyValue
Source
depth
Source
get(name : String) : AnyValue | Nil
Source
index
Source
index=(index : Int32)
Source
items
Source
last_changed
Source
last_changed=(last_changed : AnyValue | Nil)
Source
length
Source
parent
Source
parent=(parent : LoopCallable | Nil)
Source
sink
Source
sink=(sink : IO)
Source
to_ctx_hash
Source
undefined
Source
undefined=(undefined : Undefined)
Source