Flows

Flows refer to definition structures that control the flow of execution - conditions, loops, tree-traversals, and others. Flows start with {[ and end with ]} tags respectively, and must be closed with {[/]}:

{[ for name in names ]}
- {{ name }}
{[/]}

Some flows change or enhance data inside the blocks they define. In the example above, the value of the property name will always be different with each pass of the loop. When running with appropriate data (names = [Anna, George, Peter]), the output will look like this:

- Anna
- George
- Peter

Shorthand syntax

In some cases, the flow doesn't form a block - that is, it doesn't have a body that it can execute. One such example would be a variable definition:

{[ var numberOfPeople 10 /]}

In this case, you can use shorthand flow syntax to immediately close the flow without a body. You can close any flow using the shorthand syntax, indicating that you are not interested in the body at all.

Available Control Flows

Condition flows

Loops

Variables

Manipulating and using blueprints

Merging existing content

Debugging