Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "computron", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "addon.js", |
@@ -51,1 +51,23 @@ [![Build Status](https://travis-ci.org/Inist-CNRS/computron.svg?branch=master)](https://travis-ci.org/Inist-CNRS/computron) | ||
``` | ||
## API | ||
**Computron.loadStylesheet(string, callback)** | ||
```js | ||
Computron.loadStylesheet('path/to/my/file.xsl', error => { | ||
// ... | ||
}); | ||
``` | ||
**Computron.apply(string, [obj], callback)** | ||
```js | ||
// With params | ||
Computron.apply('path/to/my/file.xml', { name: 'John DOE' }, (error, result) => { | ||
// ... | ||
}); | ||
// Without params | ||
Computron.apply('path/to/my/file.xml', (error, result) => { | ||
// ... | ||
}); | ||
``` |
21983
73