This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
Campy /
| name | age | message | |
|---|---|---|---|
| |
LICENSE | Thu Aug 27 15:58:00 -0700 2009 | |
| |
README | Thu Aug 27 15:58:00 -0700 2009 | |
| |
campy.js | Thu Aug 27 15:58:00 -0700 2009 | |
| |
mootools-1.2.3-core-server.js | Wed Aug 12 15:03:34 -0700 2009 | |
| |
mootools-1.2.3.1-more.js | Fri Aug 14 19:36:35 -0700 2009 | |
| |
sha256.js | Thu Aug 27 15:58:00 -0700 2009 | |
| |
tago.js | Thu Aug 27 15:58:00 -0700 2009 |
README
Campy is a little itsy bitsy web framework for the Node.JS server system, providing url routing, helpers, a html5
builder similar in design to Markaby and view module, cookie support, and eventually, cookie based signed session
handling.
This little critter has been inspired by the mythical Why The Lucky Stiff’s “Camping” framework for ruby, as well as Mar
kaby. It does not aim to be a direct clone however, and diverges in many ways. The aim is that it will be familiar to
Camping and Markaby users, while making the best API decisions possible given the javascript environment.
Of particular note, one line in the mootools more included with this, is modified, to make it compatible with DOM-less
environments (such as node). The issue was with the base URI.
Of exceptional note, Campy makes use of my load() function for dependancy loading, as defined here:
process.window = process;
// loads files simply
process.prependLoadString = '';
var alreadyLoaded = [];
process.load = function(file) {
var file = prependLoadString + file;
if (alreadyLoaded.indexOf(file) != -1) return;
alreadyLoaded.push(file);
var prevLoadString = prependLoadString;
process.prependLoadString = file.slice(0, file.lastIndexOf('/') + 1);
process.eval('with (process) {\n' + node.fs.cat(file).wait() + "\n}");
process.prependLoadString = prevLoadString;
}
load('Campy/campy.js');






