0.9.19 • Published 8 years ago

vomit v0.9.19

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

vomit

virtual dom it sucks

vomit

Build Status Gitter NPM Downloads

Intro

Vomit is a simple function call that allows you to quickly build components that update themselves.

function stopwatch(start) {
  // create timer dynamic component
  var timer = vomit(function(seconds) {
    return vomit`<div>Seconds Elapsed: ${seconds}</div>`
  })

  // update timer dom element every second
  setInterval(() => timer(++start), 1000)

  // return timer dom element
  return timer(start)
}

Vomit does not force you into any syntax/API but instead uses the power of JavaScript template literals built in your browser. Quickly create DOM element that you can compose with Objects, Arrays, other DOM elements, Functions, Promises and even Streams.

Check out live examples and docs for more information.

Features

Other features are:

  • Component oriented development using DOM diffing based on real DOM (not virtual DOM)
  • Separate and optimize rendering of static and dynamic content
  • HTML5 Web Component
  • Works server side
  • Works with SVG
  • 2kb minified + gzipped, ideal for mobile and to include as dependency
  • share the same core engine than the MVVM library brick

You'll find Vomit disgustingly easy to learn. Please check out live examples and docs.

Question

For questions and feedback please use the Gitter chat room. For support, bug reports and or feature requests please use the issue list of this repo and make sure it's not present yet in our reporting checklist.

Contribution

Vomit is an open source project and would not exist without its community. If you want to participate please make sure to read the contributing guide before making a pull request. If you have any vomit-related project, component or other let everyone know on our chat room or in our wiki.

License

NPM

The MIT License (MIT)

Copyright (c) 2016 Olivier Wietrich

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

0.9.19

8 years ago

0.9.18

8 years ago

0.9.16

8 years ago

0.9.15

8 years ago

0.9.14

8 years ago

0.9.13

8 years ago

0.9.12

8 years ago

0.9.11

8 years ago

0.9.1

8 years ago

0.9.0

8 years ago

0.1.0

8 years ago

0.0.0

8 years ago