Email Templates: Difference between revisions
No edit summary |
|||
| Line 10: | Line 10: | ||
Obsidian email templates use [http://mustache.github.io/ Mustache], which is a logic-less templating language commonly used in various applications. Specifically, Obsidian uses [https://github.com/samskivert/jmustache jMustache], and it can be referred to when looking for feature support and general syntax in your templates. | Obsidian email templates use [http://mustache.github.io/ Mustache], which is a logic-less templating language commonly used in various applications. Specifically, Obsidian uses [https://github.com/samskivert/jmustache jMustache], and it can be referred to when looking for feature support and general syntax in your templates. | ||
== Templating Variables == | |||
The following table documents all data elements that are available in email templates. Note that some data elements are only available in certain contexts, so your templates should be written accordingly. | |||
If you wish to see a sample template, simply navigate to the '''[[Admin Templates|Email Templates]]''' screen in the admin UI, and take a look at the default templates that are pre-installed. | |||
Revision as of 01:24, 3 June 2013
As of version 2.0, Obsidian supports customizable templates for all email notifications.
Template Basics
Obsidian comes with two basic email templates that are suitable for most users. For those that wish to have more control, templates can be configured in the Email Templates screen.
Both subject and body fields can be templated. Note that body templates are used for HTML only.
Templating Language
Obsidian email templates use Mustache, which is a logic-less templating language commonly used in various applications. Specifically, Obsidian uses jMustache, and it can be referred to when looking for feature support and general syntax in your templates.
Templating Variables
The following table documents all data elements that are available in email templates. Note that some data elements are only available in certain contexts, so your templates should be written accordingly.
If you wish to see a sample template, simply navigate to the Email Templates screen in the admin UI, and take a look at the default templates that are pre-installed.