Helper References
Last updated
Last updated
In Squirrelly, a reference is a single value that's passed in as an option to the template. There are two types of references, and helper references.
A helper reference is a reference that points to data created by a helper. For example, when looping through an object using the foreach
helper
Prefix a helper reference with @
.
Helper references are always in the scope of its parent helper.
To access the helper references of an outside helper, you can use scoping. Example:
If you have many layers of nestedness, it can be easier to use ID's instead of scoping.