Skip to content
/ vomit Public

😷 A minimal high order function for building user interfaces

License

Notifications You must be signed in to change notification settings

bredele/vomit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vomit

virtual dom it sucks

vomit

Build Status

Intro

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

var name = 'World'
var el = vomit`<h1>Hello ${name}!</h1>`

Vomit does not force you into any syntax/API but instead uses the power of JavaScript template literals built in your browser. String substitution presents many benefits and Vomit makes it even better allowing you to substitute Objects, Arrays, Functions, Promises and Streams.

Other features are:

  • A 5 minutes learning curve (a function call to create an element, an other function call to update it)
  • 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

You'll find Vomit disgustingly easy to learn. To check out live examples and docs, visit our website.

Contribution

For questions and feedback please use the Slack chat room. For support, bug reports and or feature requests please use the issue list of this repo.

NPM

License

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.

About

😷 A minimal high order function for building user interfaces

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published