FishEye 2.3 : Freemarker Data Model for Email Templates
This page last changed on Mar 31, 2008 by edawson.
Customising FishEye email templates with FreemarkerThis page lists the Freemarker data-model for FishEye email templates. See the Freemarker documentation for instructions on Freemarker syntax. Use the templates that ship with FishEye as a guide to the properties available on each object. These templates are used to send both batch (e.g. daily) and immediate emails. The template has access to the changesets variable which contains the list of changesets to send. The default FishEye email templates make use of various data model objects, listed below. Here is a simple example that prints out each revision in each changeset. [#list changesets as cs] ${cs.id} Author: ${cs.author} Comment: ${cs.comment} Files: [#list cs.revisionInfos as rev] ${rev.path} ${rev.revision} [/#list] [/#list] Primary Data Model Objects
The syntax to use the data model object 'repname' as an example, is as follows: ${repname} Changeset objectsThe changesets list will contain multiple changesets for batch (e.g. daily) notifications and one element for immediate notifications. These changeset objects have the following properties:
For example, to iterate through all the changesets notifications, you would use the following: [#list changesets as cs] ${cs.id} ${cs.author} [/#list] Revision objects
|
![]() |
Document generated by Confluence on Jul 29, 2010 02:16 |