UNPKG

dojo-templater

Version:
102 lines (91 loc) 2.32 kB
module.exports = # Index # Render a list of all emails, with preview links # Used in Dojo so admins can review email templates "index" : emails: [ { title: "Welcome A" templateName: "welcomeA" subject: "Welcome to the Dojo!" info: "Sent when a new teacher signs up - A group." }, { title: "Welcome B" templateName: "welcomeB" subject: "Welcome to ClassDojo!" info: "Sent when a new teacher signs up - B group." } ] # Welcome A "welcomeA" : fname: "Chris" lname: "Test" title: "Herr Doktor" # Welcome B "welcomeB" : fname: "Joe" lname: "Test" title: "Mister" "initialParentInvite" : inviteLink : "http://invitelink.com" teacher_name: "Tim" student_name: "Sam" "dailyDigestA" : subject: "Chris, Stuart, and Monica had a great day in ClassDojo" unsubscribe: "http://classdojo.com" to: { email: "frank@classdojo.com" } stories : [ { type: 'positive_points_over_week', metadata: chartData: [ {day: 'M', count: 3}, {day: 'T', count: 0}, {day: 'W', count: 4}, {day: 'T', count: 4}, {day: 'F', count: 6} ], totalAwards: 17 }, { type: 'top_3_in_class_for_behavior', metadata: { nstudent: '12345678' # the nstudent id to form the link firstName: 'Stuart', lastName: 'Reavley', award: 'Participation', rank: 1 } }, { type: 'top_3_in_class_for_behavior', metadata: { nstudent: '12345678' # the nstudent id to form the link firstName: 'Chris', lastName: 'Frank', award: 'Helping Others', rank: 1 } }, { type: 'top_3_in_class_for_behavior', metadata: { nstudent: '12345678' # the nstudent id to form the link firstName: 'Liam', lastName: 'Don', award: 'On Task', rank: 1 } }, { type: 'parents_connected', metadata: { connected: 3 notConnected: 21 total: 24 } } ]