Skip to content
This repository

Syntax 

thomaslee edited this page · 4 revisions
Clone this wiki locally

Syntax Overview

Jazz will simply echo the content of the template until it encounters a leading curly brace ({).

Expressions

<var>
<num>
<str>
<expr> eq <expr>
<expr> neq <expr>
<expr>.someAttr
<expr>.someAttr.anotherAttr
<expr> and <expr>
<expr> or <expr>
not <expr>
(<expr>)

Conditionals

{if <expr>}...{end}
{if <expr>}...{else}...{end}
{if <expr>}...{elif <expr>}...{end}
{if <expr>}...{elif <expr>}...{else}...{end}

Loops

{foreach <var> in <expr>}...{end}

Render expressions

{<expr>}

Function calls

{<expr>(arg1, arg2, ...)}
Something went wrong with that request. Please try again.