Everything is mostly based on helper:
- The
{{> partial foo bar name=blabla }}
is nothing more that helper that call the partial with that parameters - The
{{ foo }}
it is an alias for{{lookup . "foo"}}
also{{helper a}}
it is an alias for{{ helper (lookup . "a") }}
- The
{{#block a b c}}
is the same as an helper, where the body of the block (the list of children) is passed as a parameter. And also the list of else
Also the function can return any type of value, so the {{}}
or {{{}}}
should apply a render
function so {{ foo }}
should be see like: render(lookup(".", "foo"))