Comparing version 0.0.11 to 0.0.12
{ | ||
"name": "liyad-cli", | ||
"version": "0.0.11", | ||
"version": "0.0.12", | ||
"description": "CLI and REPL for Liyad (Lisp yet another DSL interpreter).", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -87,3 +87,3 @@ # Liyad CLI | ||
## Packaging and publish your codes as the NPM module. | ||
See [liyad-lisp-pkg-example](https://github.com/shellyln/liyad-lisp-pkg-example) | ||
See [liyad-lisp-pkg-example](https://github.com/shellyln/liyad-lisp-pkg-example) and [liyad-webapp-example](https://github.com/shellyln/liyad-webapp-example) | ||
@@ -143,2 +143,9 @@ ### Usage of package: | ||
* `id`: Load from relative path if `id` starts with `./` or `../`. Otherwise load from local or global `node_modules`. | ||
* `$render(jsxElement, callback)` | ||
* Render jsxElement by `LSX-bootstrap.render()` and pass rendering result string or error to `callback`. | ||
* returns: `undefined` | ||
* `jsxElement`: object returned by `LSX-bootstrap.dom()`. | ||
* `callback(error, html)`: callback function called on end of rendering `jsxElement`. | ||
* `error`: not null if error is occured. | ||
* `html`: rendering result html; null if error is occured. | ||
@@ -145,0 +152,0 @@ ---- |
30576
155