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
Provide a mechanism to avoid unnecessary whitespace #34
Assume we have something like the following:
<% for fieldIdx in fields %>
<% field := fields[fieldIdx] %>
<% with field %>
<% field.name %>
<% end %>
<% end %>
<% end %>
There are 2 new lines between the <% for %> and <% with %>
<% ignorenl %> could be used.
Would something like the following be useful:
<% for fieldIdx in fields |%>
<% field := fields[fieldIdx] %>
<% | with field %>
<% field.name |%>
<% end %>
<% end %>
< |% end %>
Note the use of |%> and <%|
|%> ..... <%| would result in everything between it being discarded
Assume we have something like the following: <% for fieldIdx in fields %> <% field := fields[fieldIdx] %> <% with field %> <% field.name %> <% end %> <% end %> <% end %>
There are 2 new lines between the <% for %> and <% with %>
<% ignorenl %> could be used.
Would something like the following be useful: <% for fieldIdx in fields |%> <% field := fields[fieldIdx] %> <% | with field %> <% field.name |%> <% end %> <% end %> < |% end %>
Note the use of |%> and <%|
|%> ..... <%| would result in everything between it being discarded