Skip to content

Commit

Permalink
readme: example
Browse files Browse the repository at this point in the history
  • Loading branch information
indutny committed Apr 24, 2013
1 parent 31ead37 commit 838a4f0
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,20 @@
# BEMHTML.js
# BEMHTML.js [![Build Status](https://secure.travis-ci.org/indutny/bemhtml.js.png)](http://travis-ci.org/indutny/bemhtml.js)

Compiler for a BEMHTML matching/template engine.

## Usage:

```javascript
var bemhtml = require('bemhtml');

var template = bemhtml.compile('... your source code ...');

template.apply.call({
block: 'b-link',
tag: 'a',
attrs: {
href: 'http://news.ycombinator.com'
},
content: 'Hacker News'
});
```

0 comments on commit 838a4f0

Please sign in to comment.