Spark View Engine 中的 ${...} 和 !{...} 有什么区别?
Spark View Engine 中的 ${...}
和 !{...}
有什么区别?
两者之间可能确实存在明显的区别,但我认为它们可以互换使用。
一种对输出进行编码,另一种不编码?我在小组中看到过一些讨论?如果这是真的,那么它会做什么:
${H(Model.Name)}
另外,在配置中设置以下内容将如何影响 ${}
和 !{}
?
<pages automaticEncoding="true|false" />
我希望也为其他人记录这一点,因为当前的文档似乎支离破碎且过时。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
!{...}
从不编码,${...}
遵循automaticEncoding
设置和H(...)
将始终进行编码。!{...}
never encodes,${...}
obeys theautomaticEncoding
setting andH(...)
will always encode.