Skip to content

Block Reference

Variables

Syntax:

{{myVar}}

Conditions

Syntax:

{{#if myVar}}

    <!-- some code -->

{{/if}}

Bug

Tags else if and else aren't planned to be implemented yet.

Loops

Syntax:

{{#for i in myArray}}

    <!-- some code-->

{{/for}}

Include

Syntax:

{{#include ./path/to/included/file.html}}
    <p>Couldn't load file.html</p>
{{/include}}

Tip

If the engine can't load the file it will display the block content.

Tip

The container file's context will apply to all included files.