Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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`.