How can I make !{ } in SparkViewEngine not render anything?
How can I prevent the Spark view engine from rendering the debugging hint when a null ref exception is thrown in !{ }
? It always renders "${ expression.that.throws.nre }". The documentation states that it should render an empty string... it never mentions the behavior I'm experiencing.开发者_Python百科 Using settings.SetDebug(false)
doesn't change this behavior, nor does setting the project to "Release".
$!{...}
usually does the trick.
${...}
renders ${...}
if null ref exception was faced.
Are you sure you wrote $!{}
and not ${}
or !{}
?
精彩评论