Realtime-events, personalized blocks and html content
Hi community
I am designing an email template that'll be triggered based on an event with some real-time event context carrying parameters. We want the template to be able to accept and show some dynamic content via these events such as bulleted lists of items, but as far as I can tell the event context is pretty flat in terms of delivering data, only allowing properties. The caller of the event will produce some quite dynamic content, so we find it hard to have to design a very large variety of templates to fit every need.
Our initial idea was to somehow, if possible, insert the data from the real-time event in the template but allow it to be rendered directly as HTML inside the template. Basically reserving an area of the template where the caller could "inject" some specifically styled content. That way, the caller of the event could send along some simple HTML structured data, no styling, just structure, and that would be rendered nicely in the resulting email.
I cannot seem to determine if that is at all possible or just a dead end and we should be looking for another solution (which we would love to get ideas for as well).