{% module %} {% function name="niceTemplate" %} % var cons = "consectetur";

Welcome to this empty site.

Lorem ipsum dolor sit amet, ${cons} adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

This is a citation. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.

Welcome to this empty site.

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

{% end %} {% function name="yop" %} Hello {% end %} {% function name="test" %} ${testVar} {% end %} {% function name="test2" %} <% _.each(lst, function(el) { %> ${el} <% } ); %> {% end %} {% function name="test3" %} % _.each(lst, function(el) { ${el} % }); {% end %} {% function name="testfct" %} % var yop = function(arg) { ${arg} % }; <% yop("abc"); %> % yop("def"); {% end %} {% function name="testmacro" %} lalala {% end %} {% function name="testcallmacro" %} %{engine.testmacro()} {% end %} {% function name="testescaping" %} % var x = "
"; ${x} {% end %} {% function name="testnoescaping" %} % var x = "
"; %{x} {% end %} {% function name="testThis" %} ${this.str} {% end %} {% function name='testDef' %} {% function name="test" %} Test {% end %} %{test()} {% end %} {% function name="testFunctional" %} % var x = "Test"; {% function name="test" %} ${ x } {% end %} %{ testFunctional2({test: test}) } {% end %} {% function name="testFunctional2" %}
%{ test() }
{% end %} ## this is a comment {% function name="testComment" %} ## this is another comment Test {% end %} {% function name="testMultiComment" %} {* This is a multi line comment *} Test {% end %} {% function name="printtest" %} % print("Test") {% end %} {% function name="singleLinePreviousSpace" %} abc % print("def") {% end %} {% function name="multiSingleLine" %} % if (true % === true) { Test % } {% end %}