Overview
The Hermes Template Language allows for the use of variables within the subject and body of an email sent through Hermes (but not the mailing lists). This allows you to send customized emails to students, parents, and staff.
Syntax
All variables in the language are enclosed in:
{{ }}
For example, if you wish to say "Hi", followed by the name of the student the email concerns, you could write:
Hi {{ student_name }}
Available Variables
The following are the variables that are usable in a template:
Student
student
The student model directly, you can use this to access the following subattributes:
student.student_id
student.ofcl
student.user.email
Sender
sender
The user model of the sender, you can use this to access the following subattributes:
sender.first_name
sender.last_name
sender.email
Sender Name
sender_name
The full name of the senders.
Student Name
student_name
The full name of the student the email concerns.
Sender Email
sender_email
The email of the sender.
Salutation
salutation
A heuristic that is replaced by "Dear " followed by the full names of all recipients (separated by commas). This is used in many included templates as the opening of an email.
Custom Variables
The language also supports things like:
- Report cards
- Translated report cards
- Student schedules
- Most student data widgets
For use on these advanced features, please contact support directly, and we'd be more than happy to help you use the language to its full potential.
Comments
0 comments
Please sign in to leave a comment.