Simple Template Engine

This template engine substitutes data fields surrounded by double curly braces. For example, if you have recipient's name in Name field you can use this expression: {​​{Name}}.

There are a couple of extra possibilities also (they do not work inside links thou):

HTML example Description
{​{Name|Dear Subscriber}}

 

This tag will be replaced by the value of the field “Name”, and if “Name” is empty, it will be replaced by «Dear Subscriber» as if it was a «default value» of the field. Instead of the text, you can specify the name of another field, for example:
{{Name|{{Email}}}}
{{HasOrders?You have 10% discount}}

If the field “Has Orders” is not empty and not equals zero, it will be replaced by the text «You have 10% discount», otherwise the result will be an empty string.
Instead of the text you can specify the name of another field, for example:

{{HasOrders?{{Discount}}}}

Look at more complicated example, which adds comma before the name, but only if name is not empty: 

Congratulations{{Name?, }}{{Name}}!