I'm using freemarker template as an template file for my java mail service. I'm trying to make common ftl template and have store the content in the database.
this my sample java model which im binding data with
model.put("invref",dbModel.getinvoiceRefNumber());
model.put("myContent", "<p>Hi Your invocie ref number is ${invref}</p>");
I don't want to create new ftl file for each email types rather I want to generate the content at runtime. But it is not binding the inner ftl tag and output I'm getting is
Hi Your invocie ref number is ${invref}
I tried Escaing html by using the below combinations but still no luck
${invref?html}
[#noescape]${invref?html}[/#noescape]
How can I acheive this?