Propose to support brackets to isolate java code ?
albert-kam opened this issue · 2 comments
albert-kam commented
So i wanted to generate ${something-dynamic}.name
.
Doing it with @myVar.name
doesnt work for this case.
So i tried @(myVar).name
in hope to isolate myVar
and let .name
to be static text, but also failed.
For now i have to use @with (String varName = myVar + '.name')
and use @varName
instead.
bendem commented
According to https://github.com/fizzed/rocker/blob/master/docs/SYNTAX.md#eval-expression- @(myVar + ".name")
should work.
albert-kam commented
Yes @(myVar).name
worked perfectly after i retried ! It could be it didnt recompile the modified template or maybe i was mistaken. Sorry for the commotion.