I am having something similar to the following in one of my templates:
<#assign myVar = ${myValue}-1>
but Freemarker is not happy and gives me:
Exception in thread "main" freemarker.core.ParseException:
Encountered "{" at line 43, column 43 in myTemplate.ftl.
Was expecting one of:
"in" ...
">" ...
<EMPTY_DIRECTIVE_END> ...
etc...
Is there any way I can use/retrieve the value of myValue
and use it in a directive?