Skip to content
This repository has been archived by the owner on May 20, 2018. It is now read-only.

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
deepsweet committed May 20, 2011
1 parent 1bfc489 commit 88934a3
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions README.md
Expand Up @@ -6,7 +6,8 @@

## static

var out = microjungle([
```javascript
var template = [
['div', {'class': 'header'},
['h1',
['a', {'href': '#'}, 'some pretty title']
Expand All @@ -32,12 +33,16 @@
],
'all rights reserved, copyright 2011.'
]
]);
];

document.body.appendChild(out);
document.body.appendChild(
microjungle(template);
);
```

## templating

```javascript
var data = {
'title': {
'url': '#',
Expand Down Expand Up @@ -65,7 +70,7 @@
}
},

out = microjungle([
template = [
['div', {'class': 'header'},
['h1',
['a', {'href': data.title.url}, data.title.text]
Expand Down Expand Up @@ -94,9 +99,12 @@
],
data.footer.copyright
]
]);
];

document.body.appendChild(out);
document.body.appendChild(
microjungle(template);
);
```

## compatibility
successfully tested in:
Expand Down

0 comments on commit 88934a3

Please sign in to comment.