Bukhtawar
Bukhtawar

Reputation: 85

Evalute FreeMarker template whose value is another placeholder

I have a template Hello ${user} and to evalute this I provide a Map with values {user=${testUser}, testUser=me} and i expect the result to be Hello me.

Upvotes: 1

Views: 457

Answers (1)

Bukhtawar
Bukhtawar

Reputation: 85

Figured out by <#assign inlineTemplate = user?interpret> Hello <@inlineTemplate /> instead of Hello ${user}

Upvotes: 1

Related Questions