11 Kamele Templating Language - goldenice/Kamele-Framework-2 GitHub Wiki
The Kamele Templating Language consists of only a few statements. As of now these are:
-
{{output:variablename}}
- Displays the contents of a variable. -
{{view:path/to/view.html}}
- This line gets replaced with the view specified. Code for this subview will be executed as well. -
{{if:variablename}}
- An if-statement. Will execute all code until the following{{else}}
or{{endif}}
depending upon the value of variablename. Expressions are not supported here, the variable should evaluate to true or false. As of now, there is noelseif
support. It is possible to nest if-else-blocks. A complete if-else-block looks as follows:
{{if:var}}
$var is true!
{{else}}
$var is false!
{{endif}}
-
{{else}}
- See above -
{{endif}}
- Ends and if-block, also, see above.