| 1 |
|
| 2 |
/** |
| 3 |
* @license cs 0.2.1 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved. |
| 4 |
* Available via the MIT or new BSD license. |
| 5 |
* see: http://github.com/jrburke/require-cs for details |
| 6 |
* |
| 7 |
* CoffeeScript is Copyright (c) 2011 Jeremy Ashkenas |
| 8 |
* http://jashkenas.github.com/coffee-script/ |
| 9 |
* CoffeeScriptVersion: '1.1.1' |
| 10 |
*/ |
| 11 |
|
| 12 |
/* Yes, deliciously evil. */ |
| 13 |
/*jslint evil: true, strict: false, plusplus: false, regexp: false */ |
| 14 |
/*global require: false, XMLHttpRequest: false, ActiveXObject: false, |
| 15 |
define: false, process: false, window: false */ |
| 16 |
|
| 17 |
(function () { |
| 18 |
|
| 19 |
|
| 20 |
define('cs',{ |
| 21 |
|
| 22 |
|
| 23 |
version: '0.2.1', |
| 24 |
|
| 25 |
load: function (name, parentRequire, load, config) { |
| 26 |
} |
| 27 |
}); |
| 28 |
|
| 29 |
}()); |
| 30 |
(function() { |
| 31 |
define('cs!controller',{ |
| 32 |
attach: function(view) { |
| 33 |
//return require.ready(function() { |
| 34 |
return view.render(); |
| 35 |
//}); |
| 36 |
} |
| 37 |
}); |
| 38 |
}).call(this); |
| 39 |
|
| 40 |
(function() { |
| 41 |
define('cs!util',{ |
| 42 |
toDom: function(text) { |
| 43 |
return 'dom:' + text; |
| 44 |
} |
| 45 |
}); |
| 46 |
}).call(this); |
| 47 |
|
| 48 |
(function() { |
| 49 |
define('cs!view',['cs!util'], function(util) { |
| 50 |
return { |
| 51 |
render: function(body) { |
| 52 |
return util.toDom('<b>This is a rendered view</b>'); |
| 53 |
} |
| 54 |
}; |
| 55 |
}); |
| 56 |
}).call(this); |
| 57 |
|
| 58 |
(function() { |
| 59 |
define('cs!csmain',['cs!controller', 'cs!view'], function(controller, view) { |
| 60 |
return controller.attach(view); |
| 61 |
}); |
| 62 |
}).call(this); |
| 63 |
|
| 64 |
require({ |
| 65 |
paths: { |
| 66 |
cs: '../../cs' |
| 67 |
} |
| 68 |
}, ['cs!csmain']); |
| 69 |
|
| 70 |
define("main", function(){}); |