You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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(
'test@test.com',
'registration',
template
)
The text was updated successfully, but these errors were encountered:
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:
The text was updated successfully, but these errors were encountered: