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

后端 未结 8 1161
隐瞒了意图╮
隐瞒了意图╮ 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:22

    If ${ is your only problem, then you could use the alternate syntax in the jQuery Templates plugin like this: {{= person.name}}

    Maybe a little cleaner than escaping it.

提交回复
热议问题