Skip to content

Handlebars custom Helper

0

Hi,

How can I add custom helper to SES template like this?

I added the script section to the body of the HTML to send the email and there's something wrong.


Handlebars.registerHelper('ifEquals', function (arg1, arg2, options) {
return (arg1 == arg2) ? options.fn(this) : options.inverse(this)
})

Thanks!

2 Answers
0

ibmboy19, did you find a way to do that?

answered 6 years ago
0

No. You can't register custom handlebar helpers in SES.
Hope AWS enhance this over the time.

Edited by: samphpdev on May 10, 2021 9:56 AM

answered 5 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.