开发者

Apache Velocity $ vs $!{}

开发者 https://www.devze.com 2022-12-14 22:08 出处:网络
For apache velocity, is there a difference between accessing va开发者_开发问答riables with $ vs. $!{}. If so, what is it?There\'s two differences, the second is formal and quiet.

For apache velocity, is there a difference between accessing va开发者_开发问答riables with $ vs. $!{}. If so, what is it?


There's two differences, the second is formal and quiet.

Formal reference notations include the braces around the variable. The quiet notation includes the ! and means to output nothing if the reference does not exist. When combining them, you create a formal and quiet notation.

0

精彩评论

暂无评论...
验证码 换一张
取 消