Unable to render an image
I am trying to include an image in a document using freemarker template:
Hot to read big number as String in Freemarker template
I am trying to parse the xml and reading a big number value from the xml . I want to treat the number value as String in parsing but some reason i am getting a different number after parsing the xml . I am trying to make a json file from the xml . Freemarker is latest version.
Pass rest… parameters to child macro
What am I trying to do? Based on the documentation, this is valid freemarker: [#macro foo rest…] [#– do something with rest… –] <div [#list rest as key, val] ${key}=”${val}” [/#list] > </div> [/#macro] I want to be able to create a macro that passes rest… to a child macro (e.g. foo), something like this: […]
freemarker: recursive function changes variable value of caller function
${getTempVar(‘init’)} <#function getTempVar var > <#assign temp = var> <#if var == ‘init’ && getTempVar(‘temp’) == ‘temp’> </#if> <#return temp> </#function> This is a POC code on freemarker recursive function call. The actual code is a bit complex. Here when I call the above template, the function recursively calls itself. I initialize the temp variable […]
freemarker : Comparing variables in if condtion
I’m working with FreeMarker templates and encountering an issue related to comparing variables. My template code is as follows:
Issue with freeMarker generated email content
I have a freeMarker template .ftl file that has html + css styling code. This template gets the dynamic model data to replace the place holders during runtime. And after freeMarker processing I send that string content as email body but the received email shows raw html + css code which is unexpected, it suppose to show the actual content with css styling applied to the content rather than showing the raw html with css code in the received email body.
Dynamic data gets replaced appropriatly.
Freemarker, formatting date issue
The string is this one: