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

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

    Another option is to use #include with parse=false option. That is, put your jQuery Templates into the separate include page and use parse=false so that freemarker doesn't try and parse it.

    This would be a good option when the templates are larger and contain double quotes.

提交回复
热议问题