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
We have a panel where the admin can create different types of announcements. These announcements are tied to different workflows, and each of them have their own custom handlebars in app template. Some are cosmetically complex. It'd be nice to have an endpoint that we can just call to have the templating engine on novu backend do the interpolation and return the resulting html back. Something like this:
🎤 Why is this feature needed ?
Right now, we have to manually find the template by getting the entire detail of a workflow, then look for a specific step, extract out the handlebars template and then on our react admin panel, use the data input by the admin and interpolate using the handlebars package.
✌️ How do you aim to achieve this?
To have a new endpoint specifically for previewing things. A possible interface in the sdk might be:
The endpoint returns a string representing the interpolated content using the handlebars template and the given payload of the specified workflow and step.
🔄️ Additional Information
No response
👀 Have you spent some time to check if this feature request has been raised before?
🔖 Feature description
We have a panel where the admin can create different types of announcements. These announcements are tied to different workflows, and each of them have their own custom handlebars in app template. Some are cosmetically complex. It'd be nice to have an endpoint that we can just call to have the templating engine on novu backend do the interpolation and return the resulting html back. Something like this:
🎤 Why is this feature needed ?
Right now, we have to manually find the template by getting the entire detail of a workflow, then look for a specific step, extract out the handlebars template and then on our react admin panel, use the data input by the admin and interpolate using the handlebars package.
✌️ How do you aim to achieve this?
To have a new endpoint specifically for previewing things. A possible interface in the sdk might be:
The endpoint returns a string representing the interpolated content using the handlebars template and the given payload of the specified workflow and step.
🔄️ Additional Information
No response
👀 Have you spent some time to check if this feature request has been raised before?
🏢 Have you read the Code of Conduct?
Are you willing to submit PR?
Yes I am willing to submit a PR!
The text was updated successfully, but these errors were encountered: