netzpirat/haml_coffee_assets — Issue #9: null values show up as text
Author: JeanMertz
Created: 2011-11-22 10:50:03+00:00
State: open

I just switched from using `.jst.eco` for my Backbone templates to using `hamlc`. I love it so far, soo much cleaner. While updating my templates I am bumping into one issue though, I can't seem to get a `null` value to parse nothing.

In my Backbone Model I do:

```coffeescript
defaults:
email: null
first_name: null
last_name: null
company: null
```

This line in `eco` shows the company when there is one, and shows nothing when there isn't:

```html

company:
>

```

While the new `hamlc` shows the actual text `null` inside the input field when no company is provided:

```haml
.field
%label{ for: 'company' } company:
%input{ type: 'text', name: 'company', id: 'company', value: @company }
```

Any ideas?