-
Notifications
You must be signed in to change notification settings - Fork 83
Open
Description
Is anyone here know how to compile the template to string? I'm going to use express-hbs for email function on my project. and the function input must be an HTML in a string. The main goal is I want to use the powerful template inheritance that you guys have.
here is my code:
const emailData = {
title: 'My Title',
}
t = await hbs.compile(source)
let template = t(emailData)
const mailService = new EmailService(
'[email protected]',
'registration',
template
)
jimmypawoon, LePhasme, monkeydjoy, alibusway, justitiawalewangko and 3 more
Metadata
Metadata
Assignees
Labels
No labels