sempare-delphi-template-engine
sempare-delphi-template-engine copied to clipboard
add 'else' , 'onfirst', 'onlast', 'onloop' to 'for' loop
this is useful for cases when the for loop is empty and means the developer does not need to create an additional if statement.
e.g.
<% for x in items %>
<% onfirst %>
<ol>
<% onlast %>
</ol>
<% onloop%>
<li>item: <% x %></li>
<% else %>
there are no items.
<% end %>