Evaluation
Usage
- Block
- Inline
{{{
<expressions...>
}}}
{{ <expressions...> }}
Examples
Defining variables
- Block
- Inline
Dot Template
{{{
const name = "Marcellino Ornelas";
}}}
{{= name }}
Result
null
caution
Inline evaluations are not recommend due to the white space they leave behind. However we still support this syntax due to legacy reasons but may be removed in future versions.
Dot Template
{{ const name = "Marcellino Ornelas"; }}
{{= name }}
Result
null
Defining functions
- Block
- Inline
Dot Template
{{{
const sayHello = (name) => {
return "Hello " + name
};
}}}
{{= sayHello("lino") }}
Result
null
caution
Inline evaluations are not recommend due to the white space they leave behind. However we still support this syntax due to legacy reasons but may be removed in future versions.
Dot Template
{{ const name = "Marcellino Ornelas"; }}
{{= name }}
Result
null