Sizzle et Chiron

2 views
Skip to first unread message

Kris Kowal

unread,
Dec 3, 2008, 2:17:41 AM12/3/08
to John Resig, Chiron
John,

I've integrated the top of trunk Sizzle in modules.js/Chiron, a
"batteries included" JavaScript module library project I've been
working on for a few years.

https://cixar.com/tracs/javascript/browser/trunk/src/select.js

Using it in a Chiron module looks something like this:

include('select.js');
include('browser.js');
select('#buffer').forEach(setOpacity(.5));

I've also ported Jack Slocum's and John Donaghue's selector engines.
They all have the same "select" interface, so they're effectively
interchangeable "duck-modules".

The Chiron premise is that every file is a singleton sovereign
namespace. There's no global footprint, apart from JSONP
continuations. It uses XHR to fetch module files, that can be
optionally statically bundled on the server side. All the details are
on http://modulesjs.com if you get curious.

I'm running the nightly build now, but when it's done (probably a half
hour), you can try out that piece of sample code on the console at:

http://modulesjs.com/nightly/build/run.html

Kris

Reply all
Reply to author
Forward
0 new messages