Charles
Charles

Reputation: 6317

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. Using settings.SetDebug(false) doesn't change this behavior, nor does setting the project to "Release".

Upvotes: 0

Views: 64

Answers (1)

Arnis Lapsa
Arnis Lapsa

Reputation: 47627

$!{...} usually does the trick.

${...} renders ${...} if null ref exception was faced.

Are you sure you wrote $!{} and not ${} or !{}?

Upvotes: 1

Related Questions