jadejs/jade — pull request #1704 by ForbesLindesay (2014-10-30 12:29:22+00:00)
Title: Object classes and styles

This adds support for passing objects to the class and style attributes:

```jade
div(class={active: true, inactive: false} style={color: 'red', background: 'green'})
```

```html

```

The styles thing is largely for better parity with react-jade, but I also think it just makes more sense as a way of setting the style. The classes change will make it way easier to add multiple conditional classes to an element.