How to output ${expression} in Freemarker without it being interpreted?

后端 未结 8 1160
隐瞒了意图╮
隐瞒了意图╮ 2020-12-05 06:39

I\'m trying to use Freemarker in conjunction with jQuery Templates.

Both frameworks use dollar sign/curly brackets to identify expressions for substitution (or as th

8条回答
  •  误落风尘
    2020-12-05 07:25

    Did you try $$?

    I found from the Freemarker manual that ${r"${person.name}"} will print out ${person.name} without attempting to render it.

    Perhaps you should also take a look at Freemarker escaping freemarker

提交回复
热议问题