Jump to content
Sign in to follow this  
darnocian

ANN: Sempare Template Engine v1.7.5 released

Recommended Posts

Hi All,

 

Just a quick announcement that a new version 1.7.5 of the Sempare Template Engine is now available. 

 

Sempare Template Engine for Delphi allows for flexible dynamic text generation. It can be used for generating email, html, source code, xml, configuration, etc. 

 

Integrations have been done with a number of web frameworks such as: Indy, WebBroker, Horse, DelphiMVCFramework, mORMot, ...

 

Please check out the project, and 'star' it on github.

 

https://github.com/sempare/sempare-delphi-template-engine

 

From v1.7.5

FIX: Improved JSON (System.JSON) support
FIX: Refactor RTTI deref methods

 

From v1.7.4 (released last week)

 

NEW: Assignment can now be done using both Pascal (:=) and C (=) operators. This is a flexibility feature to support users.
NEW: default(value, default) method. Default is returned when IsEmpty(value) is true.
NEW: domid(record_or_class [, context:str] )
NEW: pascal-like ternary: <% greet := true; print( 'hello' if greet else 'bye' ) %>
FIX: refactor old C-like ternary <% print(greet? 'hello':'bye' ) %>
FIX: some of the language constructs required open and close brackets. These are now optional. Close bracket will be forced when the open bracket is used.
FIX: semi colons can be used more liberally within the script blocks, even with empty statements. <% print('hello'); ; ; ; print('world') ; %>

 

Regards,

Conrad

 

Edited by darnocian
  • Like 2

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×