Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/themindfuldev/marionette-vdom
Marionette.js views implemented with virtual-dom
https://github.com/themindfuldev/marionette-vdom
Last synced: 3 months ago
JSON representation
Marionette.js views implemented with virtual-dom
- Host: GitHub
- URL: https://github.com/themindfuldev/marionette-vdom
- Owner: themindfuldev
- License: other
- Created: 2014-12-28T03:10:19.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-12-27T23:02:48.000Z (over 5 years ago)
- Last Synced: 2024-04-04T06:04:32.717Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 508 KB
- Stars: 128
- Watchers: 14
- Forks: 13
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: changelog.md
- License: license.txt
Lists
- awesome-marionette - Marionette Virtual Dom
README
# marionette-vdom
[![Build Status](https://travis-ci.org/themindfuldev/marionette-vdom.svg?branch=master)](https://travis-ci.org/themindfuldev/marionette-vdom) [![Coverage Status](https://coveralls.io/repos/themindfuldev/marionette-vdom/badge.svg)](https://coveralls.io/r/themindfuldev/marionette-vdom) [![npm version](https://badge.fury.io/js/marionette-vdom.svg)](http://badge.fury.io/js/marionette-vdom) [![Davis Dependency status](https://david-dm.org/themindfuldev/marionette-vdom.svg)](https://david-dm.org/themindfuldev/marionette-vdom)A ```Marionette.View``` and ```Marionette.CompositeView``` implementation with [virtual-dom](https://github.com/Matt-Esch/virtual-dom).
## Version
- If you are using Marionette.js v3+ you should use marionette-vdom v0.2+ (or the latest)
- If you are using Marionette.js v2 you should use marionette-vdom v0.1.2-b## Usage
This module exposes ```View``` as the VDOM implementation for ```Marionette.View``` and ```CompositeView``` for ```Marionette.CompositeView```:
```javascript
var VDOMView = require('marionette-vdom').View;
var VDOMCompositeView = require('marionette-vdom').CompositeView;
```## How tos
To install:
```bash
npm install
```To run the demo app:
```bash
npm run demo
open http://127.0.0.1:9966/demo/demo.html
```To run the perf test:
```bash
npm run perf
open http://127.0.0.1:9966/perf/perf.html
```To run the unit tests:
```bash
npm test
```To generate binaries:
```bash
./build.sh
uglifyjs --compress --mangle -- marionette.vdom.js > marionette.vdom.min.js
```Make sure to check out the [change log](changelog.md).
## Browser support
IE 9 on