stuart_core 0.2.3

A Blazingly-Fast Static Site Generator.
Documentation
{{ begin("main") }}
{{ import($data, "testcase.json") }}

{{ ifeq($data.name, "Stuart") }}
<p>Name is Stuart</p>
{{ end(ifeq) }}

{{ ifne($data.name, "Stuart") }}
<p>Name is not Stuart</p>
{{ end(ifne) }}

{{ ifeq($data.name, "Humphrey") }}
<p>Name is Humphrey</p>
{{ end(ifeq) }}

{{ ifne($data.name, "Humphrey") }}
<p>Name is not Humphrey</p>
{{ end(ifne) }}

{{ ifge($data.age, 18) }}
<p>Is an adult</p>
{{ else() }}
<p>Is not an adult</p>
{{ end(ifge) }}

{{ iflt($data.age, 18) }}
<p>Is a child</p>
{{ else() }}
<p>Is not a child</p>
{{ end(iflt) }}

{{ end("main") }}