You are currently reviewing an older revision of this page.
Here are some tips for writing and managing HTML Templates in Tessitura. These tips work as of version 15.
Make your own backups
Tessitura does not create back-ups of HTML Templates, so you must do this yourself if you want to keep a history of changes and guard against accidentally breaking your emails.
Some advice:
Inspect contents of a Model or data object
Use the following snippet to show the contents of a data object in JSON format. This lets you find out what fields are available.
This example shows the contents of anObject. It works best if you wrap the statement in <pre></pre> tags.
<pre> @Raw(Newtonsoft.Json.JsonConvert.SerializeObject( @anObject, Newtonsoft.Json.Formatting.Indented )); </pre>