#Palikka v0.4.1
The aim of this project is to provide a robust set of tools for creating reusable modules. Palikka consists of three core components: module system, event system and promise system (Promises/A+ 1.1 compliant). All components are highly optimized leveraging each other internally. All this goodness is dependency free, well tested/documented, works in the browser (IE7+) as well as Node.js and is delivered in a compact package (6.04kB minified, 2.63kB gzipped).
##Getting started
Include palikka.js somewhere on your site (before any code that requires Palikka).
palikka.define('foo', ['bar'], function (bar) {
return 'foo';
});
palikka.define('bar', function () {
return palikka.defer(function (resolve, reject) {
window.setTimeout(function () {
resolve('bar');
}, 1000);
});
});
palikka.require(['foo', 'bar'], function (foo, bar) {
console.log(foo + bar);
});
##License
Copyright © 2015 Niklas Rämö. Licensed under the MIT license.