Dear users, due to the protests and the disorderly situation in Iran, there is a possibility of Internet interruption in Iran. We apologize in advance if there is a problem in updating the site. MahsaAmini WomanLifeFreedom
Sempare Template Engine for Delphi allows for flexible, dynamic text generation. It can generate email, html, source code, XML, configuration, etc.
Template engines are often used in technology where text needs to be customized by substituting variables with values from a data source. Examples where this may take place:
web sites using template engines (for server-side scripting)
The Sempare Template Engine is a small templating engine for Delphi (Object Pascal) that allows templates to be created quickly and efficiently by providing a simple and easy-to-use API.
The project uses Run-time Type Information (RTTI) to allow almost any type to be dereferenced within the template script.
The example above shows that the '<%' start and '%>' end the scripting statement. Within a scripting statement, you can reference variables, assign variables, use conditions for and while loops, and include other templates.
Sempare Template Engine for DelphiGreat Features:
if, Elif, else statements
for and while statements
extends / block statements
simple expression evaluation (logical, numerical, and string)