Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vladtsf/vivid-framework
Vivid is a small tools set useful for jQuery plugins developers
https://github.com/vladtsf/vivid-framework
Last synced: about 2 months ago
JSON representation
Vivid is a small tools set useful for jQuery plugins developers
- Host: GitHub
- URL: https://github.com/vladtsf/vivid-framework
- Owner: vladtsf
- Created: 2011-12-04T15:25:03.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2012-07-02T07:25:27.000Z (over 12 years ago)
- Last Synced: 2024-04-15T02:13:25.639Z (9 months ago)
- Language: JavaScript
- Homepage:
- Size: 137 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Vivid Framework
Vivid is a small tools set very useful for jQuery plugins developers.## Modules
### Collection
This is a object-container. You can store any data with Collection class.#### example
var Collection = $.Vivid.Collection;
var col = new Collection();
col
.set('foo', 'bar')
.set('bar', 'baz');
alert(col.get('foo')); // bar
alert(col.get('bar')); // baz### Console
Console is a safe wrapper for modern browser's console object. It doesn't throws exceptions when you try to call they methods in old browsers (like ie6).
As benefit you can call all methods without saving context.#### example
$.Vivid.Console.log('foo');### Cookie
Cookie class inspired from MDN web-site and assemblied to one class.#### example
var Cookie = $.Vivid.Cookie;
Cookie.set('foo', 'bar');
alert(Cookie.get('foo')); //bar
Cookie.remove('foo');
alert(Cookie.get('foo')); //null### Template
You can use it for simple templating.#### example
var Template = $.Vivid.Template;
var a = (new Template(':text:')).compile();
var $a = $(a.eval({
href: 'http://example.com',
title: 'example',
text: 'go to example site...'
}));
console.log($a); // go to example site...### Control
Control is a helper for plugins. It's contains methods for working with events, locking and other.# Building
Development and minified versions located in the `bin` folder. If you want to rebuild that from sources, use make.To install scripts bundler type `make bundler`.