Is it possible to write plain js and html using handlebars?
How functionally rich is handlebars syntax?
5 Replies
@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?
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
you can write html in email custom code editor
Could you share the example content ?
@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?
using custom javascript function or writing own handlebar helper is not supported currently
Thanks for sharing the usecase