Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[lib] docs update

  • Loading branch information...
commit 9b2cf5e726ba3f05f4a72576f16ce05d569bef77 1 parent 02dfe2d
Paolo Fragomeni authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 README.md
View
8 README.md
@@ -25,12 +25,12 @@ Take some markup, some data, bind them, done.
```js
- var Plate = require('plates');
+ var Plates = require('plates');
var html = '<div id="test">Old Value</div>';
var data = { "test": "New Value" };
- var output = Plate.bind(html, data);
+ var output = Plates.bind(html, data);
//
// with the output, you could serve it up or process it further with JSDOM
@@ -59,7 +59,7 @@ Take some markup, some data, bind them, done.
var html = '<div id="test">Old Value</div>';
var data = { "test": "New Value" };
- var output = Plate.bind(html, data);
+ var output = Plates.bind(html, data);
//
// with the output, append it to the current document or use it however you want.
@@ -89,7 +89,7 @@ Plates will attempt to match the data key to the `id` of the element. If you wan
// A property map establishes the preferred mapping of data-key to tag property.
//
var map = { "sample": "class" };
- var output = plate(html, data, map);
+ var output = Plates.bind(html, data, map);
```
Please sign in to comment.
Something went wrong with that request. Please try again.