Feature Request: Email String Interpolation - Evaluate Variables withing HTML Tag

I wanted to check if there inbuilt activity that does the simplifies email templating easily.

For instance, it is very cumbersome to replace the variables withing the HTML markup text for email:

"<h1>"+strTitle+"</h1>"

Instead of this, the templating would assume something like:

"<h1>__${strTitle}</h1>"

Would automatically attempt to replace the variable value within the text.

I am unaware if such feature already exists.

2 Likes

If you are using body type as HTML you can pass variables which can be replaced by desired text

Yes, but that is very tedious and error prone, because you have to split the HTML code and then append the variable value in the markup.

"....some very long html markup here......"+someVar+"another very long html markup here"+..

Once you get use to it, it is not that much tedious :grinning:

I found this is not called String Templating but String interpretation.
I found this link
https://stackoverflow.com/questions/733378/whats-a-good-way-of-doing-string-templating-in-net.
I will try to have something like this.