flatiron/plates — Issue #23: Usage explanations, examples
Author: Phoscur
Created: 2012-01-29 19:05:09+00:00
State: open

The usage of Plates.Map is explained well and easy to understand. But I'm actually still not sure what the standard behavior of plates is (simple usage).

# Usage

## Simple case
By default, `plates` will try to match the `data-key` in the data to an `ID` in the tag, since both should are uniqe.
// typo at uniqe

```js
var Plates = require('plates');

var html = '

Old Value

';
var data = { "test": "New Value" };

var output = Plates.bind(html, data);
```
Reading the tests, plates can do a lot more without the map. What exactly?
I'm especially out to omit map.class("barfoo").to("foo"), as it occurs a lot and shows errors in my IDE.