$var
Creates a custom variable in your template which you can access from other parts of your template
Last updated
Was this helpful?
Was this helpful?
{{$var "custom_var" "Custom value"}}
...
{{custom_var}} // Used somewhere else in the template after the above declaration{
"items":[
{
"name": "Item #1",
"qty": 5
},
{
"name": "Item #2",
"qty": 10
},
{
"name": "Item #3",
"qty": 15
},
{
"name": "Item #4",
"qty": 20
}
]
}