Creating Custom Tags
Documentation coming soon.Built-In Tags
ForEach
TheForEach tag allows you to loop through an array.
Syntax
arr: Array<T>An array of items you want to iterate onchildren: (item: T, index: number) => Node- A callback function for each item
Conditionals
TheIf, ElseIf and Else tags allows you to conditionally output content.
Syntax
If/ElseIf:
condition: boolean- The condition to checkchildren: Node- The node to render if condition is true
Else:
condition: boolean- The Node to render if the else conditon gets triggered.
Raw
TheRaw tag allows you to output raw text without interpolation.
Syntax
children: Node- The raw text