Created
June 15, 2013 11:08
-
-
Save cybrown/5787774 to your computer and use it in GitHub Desktop.
Base RequireJS app
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require(['module1', 'module2'], function (Module1, Module2) { | |
'use strict'; | |
// Main Application code here, use Module1 and Module2 | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define(['module3', 'module4'], function (Module3, Module4) { | |
'use strict'; | |
// Use Module3 and Module4 | |
var Module1 = function () { | |
// Write module | |
}; | |
return Module1; | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Base requireJS app</title> | |
<script data-main="js/main" src="js/require.js"></script> | |
</head> | |
<body> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment