class

Plombir::Template::AST::For

Inherits Plombir::Template::AST::Node < Reference < Object

{% for item in collection limit:5 offset:10 %}...{% end %}. limit caps the rendered rows (nil renders all); offset skips that many rows first. Both are literal integers in the tag — collections stay the only data source.

Constructors

new(item : String, collection : String, body : Array(Node), limit : Int32 | Nil, offset : Int32, line : Int32, column : Int32)
Source

Instance methods

body
Source
collection
Source
item
Source
limit
Source
offset
Source