jehugaleahsa / mustache-sharp

An extension of the mustache text template engine for .NET.
The Unlicense
306 stars 78 forks source link

#if and DBNull #30

Closed TrendyTim closed 10 years ago

TrendyTim commented 10 years ago

If the value is DBNull a #if treats it as though it has a value, is it me or should DBNull be a falsey value ?

jehugaleahsa commented 10 years ago

Yeah. I just made up the rules for "truthiness". I will incorporate DBNull in a future release. On Jul 31, 2014 9:32 PM, "TrendyTim" notifications@github.com wrote:

If the value is DBNull a #if treats it as though it has a value, is it me or should DBNull be a falsey value ?

— Reply to this email directly or view it on GitHub https://github.com/jehugaleahsa/mustache-sharp/issues/30.

jehugaleahsa commented 10 years ago

Done. Checked in and available on NuGet.

TrendyTim commented 10 years ago

wow that was even faster than i could have imagined, thanks and keep up the great work.