akdubya/dustjs — Issue #38: Why filters doesn't work for empty values?
Author: jifeon
Created: 2011-11-03 21:07:43+00:00
State: open

I want always show some variable as boolean, even it's undefined. I wrote filter:

```javascript
dust.filters.b = function( value ){
return value ? 'true' : 'false';
}
```

and used it:

```
{some_variable|b}
```

but undefined and false shown as empty string.