N
Novu11mo ago
raghav_a.

Is it possible to write plain js and html using handlebars?

How functionally rich is handlebars syntax?
5 Replies
Pawan Jain
Pawan Jain11mo ago
@raghav_a. Checkout our docs for handlebar helper https://docs.novu.co/content-creation-design/handlebars-helpers Would you like to share the exact usecase?
raghav_a.
raghav_a.OP11mo ago
I want to write simple html and js code using these variables flowing into the step Can i do so? Because I see handlebars is not as powerful as any other programming language
Pawan Jain
Pawan Jain11mo ago
you can write html in email custom code editor Could you share the example content ?
raghav_a.
raghav_a.OP11mo ago
@Pawan Jain take it as this. We want to create a digest using the workflow, for which we will need to have transformations and manipulations on payload in order to create the digest. This logic will lie in email template which would be present just after the digest. We can get all the events using {{step.events}}. Can I apply any javascript function on it?
Pawan Jain
Pawan Jain11mo ago
using custom javascript function or writing own handlebar helper is not supported currently Thanks for sharing the usecase
Want results from more Discord servers?
Add your server