Hey there,
I looked on several edit.vm and view.vm to understand how everything works. But there is one different I do not understand: What is the difference between $value and $!value?
To me something like "#if (!$value)" would make sense. But a view.vm with only "$!value" instead of "$value" ? I don t get it!
Thanks in advance :)!
Without "!" $value would generate velocity warning if value is null, and the substituted value will be in fact "$value", not replaced with en empty string.
See http://velocity.apache.org/engine/devel/user-guide.html#quietreferencenotation
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.