how to send html content as value of email editor variable

Use case:- One user has system that generates html content. That user wants to send that generated html using Novu
11 Replies
Pawan Jain
Pawan Jain2y ago
@Engineering That user used variable but in email it is not rendering html rather it is showing html with tags
DavidSouthmountain
yeah because we only compile the variables on one level
Pawan Jain
Pawan Jain2y ago
Is there anything we can do to support this?
DavidSouthmountain
without even leaving discord I would say that we need to re compile the output of the first compile one more time, not sure how and if it is possible...
Pawan Jain
Pawan Jain2y ago
Ohh got it. I will add this to backlog We can revisit this.
DavidSouthmountain
it becomes a problem if the user have a variable he send that needs to be put inside of another variable then it becomes an N + 1 problem @Pawan Jain I had Dima close to me and he said it would be great if we could investigate the usecase a bit more
Pawan Jain
Pawan Jain2y ago
Tagging Dima
Gali Baum
Gali Baum2y ago
I think we did something similar for the layouts feature. First, to inject html into a variable, the c=var should have triple brackets {{{htmlVar}}}. I will make sure again about this double compile, but I did that for the layouts with {{{body}}} in a layout containing html (from the email editor) that has its own variables
Dima Grossman
Dima Grossman2y ago
@Pawan Jain let's create an issue for this on the backlog
vivekpatel111
vivekpatel1114d ago
Is this feature available now? How to use the same if it's available or what's current timeline for this feature to be available?
Want results from more Discord servers?
Add your server