Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zswang/jnodes
A tool view of template
https://github.com/zswang/jnodes
javascript mvvm template view
Last synced: about 1 month ago
JSON representation
A tool view of template
- Host: GitHub
- URL: https://github.com/zswang/jnodes
- Owner: zswang
- Created: 2016-12-25T14:25:06.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-05-16T14:30:45.000Z (over 7 years ago)
- Last Synced: 2024-09-14T02:59:47.014Z (2 months ago)
- Topics: javascript, mvvm, template, view
- Language: JavaScript
- Size: 170 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
jnodes
--------# [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Coverage Status][coverage-image]][coverage-url]
Front end template data binding.
## 使用方法
### 绑定数据 bind
```js
var data = { a: 1, b: 2};var binder = new jnodes.Binder();
binder.bind(data, function (data, output) {
output.push(ejs.render(data));
});
```## License
MIT © [zswang](http://weibo.com/zswang)
[npm-url]: https://npmjs.org/package/jnodes
[npm-image]: https://badge.fury.io/js/jnodes.svg
[travis-url]: https://travis-ci.org/zswang/jnodes
[travis-image]: https://travis-ci.org/zswang/jnodes.svg?branch=master
[coverage-url]: https://coveralls.io/github/zswang/jnodes?branch=master
[coverage-image]: https://coveralls.io/repos/zswang/jnodes/badge.svg?branch=master&service=github