I want to have generalised email templates. Currently I have multiple email templates with some part of the subject and body being changed. I would like to club them together with some conditional branching like,
<email>
<sub>
if(condition)
sub1
else
sub2
</sub>
<body>
some text
if(condition)
text...
else
text...
body continued...
</body>
</email>
Can I do this in any way?