Spark View Engine 中的 ${...} 和 !{...} 有什么区别?

发布于 2024-08-15 08:40:48 字数 521 浏览 2 评论 0原文

Spark View Engine 中的 ${...}!{...} 有什么区别?

两者之间可能确实存在明显的区别,但我认为它们可以互换使用。

一种对输出进行编码,另一种不编码?我在小组中看到过一些讨论?如果这是真的,那么它会做什么:

${H(Model.Name)}

另外,在配置中设置以下内容将如何影响 ${}!{}

<pages automaticEncoding="true|false" />

我希望也为其他人记录这一点,因为当前的文档似乎支离破碎且过时。

http://sparkviewengine.com/documentation/

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/

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

青丝拂面 2024-08-22 08:40:48

!{...} 从不编码,${...} 遵循 automaticEncoding 设置和 H(...) 将始终进行编码。

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文