I was trying the template samples and got errors with the <#list> directive while trying to product a list of objects. I am new to FreeMarker, but it seems that the variable assigned with "as" cannot be used… For example, even simple stuff like:
<#list ["one", "two", "three"] as n>
${n}
</#list>
returns the error such as "Expression n is undefined at line…" with a long Java backtrace. Direct reference to properties such as ${userhome.children[0].name} work fine.
Looks like a variable scope issue.
Anything to do with the FreeMarker service? I am using enterprise RC1 on Linux.
Thanks, :roll: