Defining a function
The <function>
tag is used to define a new function.
html
<function name="foo" params-as="items">
<for each="items" as="item">
<div></div>
</for>
</function>
Attributes | Use |
---|---|
name="…" | Specifies the name of the function. |
params-as="…" | Introduces a variable that holds the data that is passed in when the function is rendered. |