Download Sempare Template Engine for Delphi 1.7.3 from November 17, 2023

Sempare Template Engine for Delphi 1.7.3 from November 17, 2023

Sempare Template Engine for Delphi 1.7.3 from November 17, 2023
Sempare Template Engine for Delphi 1.7.3 from November 17, 2023


Template engines are used often in technology where text needs to be customised by substituting variables with values from a data source. Examples where this may take place:

web sites using template engines (for server side scripting)
code generation
mail merge
notification messages
Please review the License section below before including the Sempare Template Engine in commercial products.

The Sempare Template Engine is a small templating engine for Delphi (Object Pascal) that allows for templates to be created easily and efficiently by providing a simple and easy to use API.

The project uses Run-time Type Information (RTTI) to allow for almost any type to be dereferenced within the template script.

In the example above, you can see that the '<%' start and '%>' end the scripting statement respectively. Within a scripting statement, you can reference variables, assign variables, use conditions, for and while loops, and include other templates.

NOTE In examples in this documentation I may use the latest Delphi syntax, e.g. inline variable declarations. This is not backward compatible as they were introduced in Delphi 10.2 and are used to shorten the code/examples being illustrated in the documentation. The codebase will attempt to be as backward compatible as possible.

Only for V.I.P
Warning! You are not allowed to view this text.
  • 32