sempare / sempare-delphi-template-engine

Sempare Template (scripting) Engine for Delphi allows for flexible dynamic text generation. It can be used for generating email, html, reports, source code, xml, configuration, etc.
Apache License 2.0
144 stars 18 forks source link

limit and offset can be applied to for loops #62

Closed sempare closed 1 year ago

sempare commented 2 years ago

for loops could benefit from limit and offsets to simplify logic.


<% for i in items offset 10 limit 20 %>
    item: <% i %>
<% end %>
sempare commented 1 year ago

also added 'step'....

<% for i := 0 to 10 step 2%> <% i %> <% end %>