$var
Creates a custom variable in your template which you can access from other parts of your template
Signature
{{$var name value}}
Arguments
Name
Description
Type
Required
name
The name of the variable. This will be used to access it later. Must be a valid JavaScript key
String
value
The value of the variable
Any
Returns
This function does not have a return value.
Example #1 - Basic
Custom value
Example #2 - Advanced
Create a custom variable and set the value to the results of the filter function where we filter items that have a quantity of 10 or more.

Repeat the section for each item in the custom variable


Last updated
Was this helpful?