What is the difference between ${…} and !{…} in the Spark View Engine?

你。 提交于 2019-12-23 18:13:02

问题


What is the difference between ${...} and !{...} in the Spark View Engine?

There probably is a really distinct difference between the two, but I see them used interchangeably.

Does one encode the output and the other doesn't? Which I have seen some discussion about in the groups? If that is true then what does this do:

${H(Model.Name)}

Also how will setting the following in the config effect ${} and !{}?

<pages automaticEncoding="true|false" />

I am hoping to document this for others as well, because the current documentation seems fragmented and out of date.

http://sparkviewengine.com/documentation/


回答1:


!{...} never encodes, ${...} obeys the automaticEncoding setting and H(...) will always encode.



来源:https://stackoverflow.com/questions/1933474/what-is-the-difference-between-and-in-the-spark-view-engine

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!