Search
⌃K
Links

Parametrized alias

Aliases accept an unlimited number of parameters between parentheses, like a function in many languages. Start each parameter with $.

Data

[
{ "name": "chicken", "weekday": 1 },
{ "name": "fish" , "weekday": 2 }
]
Template
Result
{#mealOf($weekday) = d[weekday = $weekday].name}
Tuesday, we eat {$mealOf(2)}.
Tuesday, we eat fish.
Last modified 1yr ago