ensemble is a tiny JS library, which can be used as starting point to create beautiful components.
ensemble is the foundation for ensemble Modal, ensemble Lightbox and ensemble SocialShare.
It is a JavaScript module with 5 main classes:
- Compo composition element, wrap around node
Element
[DOM] - Data wrapper for data, wrap around
Compo
element - Event dispatcher for events, wrap around
Event
[DOM] - Flat composition stack, wrap around
DocumentFragment
[DOM] - base abstract for components
ensemble is not gluey, it does not contain any kind of superstructure.
You can use ensemble also with other libraries (examples in the misc folder).
Using npm:
npm install --save-dev github:loltgt/ensemble