Is it possible to set one or more freemarker variable in a case like:
<#assign test=pp.loadData('eval', '
a="test1";
b="test2";
return "test";')>
and having access to a and b in the freemarker script ?
and " /> and " /> and "/>
Is it possible to set one or more freemarker variable in a case like:
<#assign test=pp.loadData('eval', '
a="test1";
b="test2";
return "test";')>
and having access to a and b in the freemarker script ?
Copyright © 2021 Jogjafile Inc.
I guess it can't be done without writing a custom
DataLoader. I'm saying "guess" because maybe I don't know about a BeanShell trick. The closest I could get is usingreturn this.namespace;and then${test.getVariable('a')}. This is too verbose of course.Update: Actually, the following horror is even closer: