neuland/jade4j — pull request #13 by gscottrw (2012-07-17 04:19:18+00:00)
Title: Add initial support for merging mixin attributes

Adds support for merging css id and class attributes when calling a mixin. Note this pull request builds upon and includes commits from a prior pull request that added clone support to nodes.

Example of merging attributes from a sub-set of jade test case mixin.merge from visionmedia/jade:

``` jade
mixin foo
p.bar One
p.baz.quux Two
p Three
p.bar(class="baz") Four

body
+foo.hello
+foo#world
+foo.hello#world
+foo.hello.world
```

Should result in HTML:

``` html

One

Two

Three

Four

One

Two

Three

Four

One

Two

Three

Four

One

Two

Three

Four

```