Require.js example expanded.

Helpers.js\moment.js included.
Alogos are still BROKEN. I'm deploying them here for testing.
This commit is contained in:
yangit
2013-05-15 14:17:53 +08:00
parent ff8721b4a3
commit ffdf279ee1
6 changed files with 29 additions and 3 deletions
+1
View File
@@ -16,5 +16,6 @@ requirejs.config({
//Load array of modules (in this case 'app/module') into the variables (in this case module). "cs!" - means this file has to be parsed by cs plugin first.
requirejs(['cs!app/module'], function (module) {
//foo() is defined within module.coffee. We can use it within this callback.
//Note that we are passing lowercase here. But will get UPPERCASE because we use parentModule within module.
module.foo('Hello!')
});