flatiron/plates — pull request #20 by robashton (2011-12-07 10:07:01+00:00)
Title: Matched template attribute is removed if a destination is specified

I don't know if this is desired behaviour or not, so I've not tried to fix it - but I figured a pull request with a test would be the best way of describing the behaviour.

Given input that looks like this

```

```

With a configuration that looks like this

```
{ "url": ["data-bind", "src"]}
```

That is, as I understand it: "Take where 'data-bind' value is 'url' and replace the attribute 'src' with the value of 'url'

I get the output

```

```

Where I'd expect

```

```

In my own templates I'm using class based matching, and the classes are used for styling as well as binding (that is, the designer doesn't care about binding).

Is this a bug or not? I'm happy to fix it if it is.