Use curly `{}` braces in templates 01/07/2015
Curly braces {} are the default delimiters in Latte. If you don’t want the curly braces interpreted as Latte tags (for example, in JavaScript), you need to type a space after {:
<div> { Hello } </div> Or you can use the Latte macros {l} and {r}:
<div> {l} Hello {r} </div> Or you can turn off the latte syntax for particular block:
<div n:syntax="off"> {Hello} </div>
Curly braces {}
are the default delimiters in Latte. If you don’t want the curly braces interpreted as Latte tags (for example, in JavaScript), you need to type a space after {
:
<div>
{ Hello }
</div>
Or you can use the Latte macros {l}
and {r}
:
<div>
{l} Hello {r}
</div>
Or you can turn off the latte syntax for particular block:
<div n:syntax="off">
{Hello}
</div>