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 }
]

{#mealOf($weekday) = d[weekday = $weekday].name}

Tuesday, we eat {$mealOf(2)}.

Last updated