Skip to main content Link Search Menu Expand Document Toggle dark mode Copy Code (external link)
paperwork.help

Values & Navigation

How a binding expression finds a value in the data: by name, through properties and indexes, relative to the current item, and grouped with parentheses.

Syntax Example Description
Names {{model}} The data added with WithData(name, value), and template variables
. Property access {{model.customer.name}} A property of a value
[] Indexer {{model.items[0]}}, {{model.rates["GBP"]}} An item in an array, list or dictionary
this and . {{this.name}}, {{.name}} The current item in a loop or with block
../ Parent {{../title}} The enclosing data context, one level up
( ) Parentheses {{(price + shipping) * qty}} Group part of an expression so it is evaluated first

See also the loop variables @index, @first and @last.