creationix/haml-js — pull request #73 by ttp (2012-12-15 10:08:37+00:00)
Title: Added optional attributes

Usage:
```
%input{checked?: model.isChecked(), disabled?: model.isDisabled()}
%input{checked?: model.isChecked(), readonly?: model.isChangable()}
```
this adds these attributes only if model returns "not false" value

For now I have to duplicate such blocks with combinations of these attributes
```
:if (model.isChecked())
%input{type: "checkbox", ..., checked: true}
:else
%input{type: "checkbox", ...}
```