Skip to content

Instantly share code, notes, and snippets.

@lyleunderwood
Created August 6, 2011 01:25
Show Gist options
  • Save lyleunderwood/1128881 to your computer and use it in GitHub Desktop.
Save lyleunderwood/1128881 to your computer and use it in GitHub Desktop.
require({
baseUrl: 'js/',
// set the paths to our library packages
packages: [
{
name: 'dojo',
location: 'dojo/dojo',
main: '/main',
lib: '.'
},
{
name: 'dijit',
location: 'dojo/dijit',
main: '/main',
lib: '.'
},
{
name: 'dojox',
location: 'dojo/dojox',
main: './main',
lib: '.'
},
{
name: 'spine.dojo',
location: 'spine/dojo',
main: './spine',
lib: '.'
},
{
name: 'spine',
location: 'spine/lib',
main: './spine',
lib: './lib'
}
],
// set the path for the require plugins—text, i18n, etc.
paths: {
require: 'requirejs-0.25.0/require'
}
}, ['scramble/base']);
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Hurley VIP</title>
<link rel="stylesheet" href="css/app.css">
<link rel="stylesheet" href="css/elastic.css">
<link rel="stylesheet" href="css/hurley.css">
<meta name = "viewport" content = "user-scalable=no,width=device-height" />
</head>
<body class="scramble">
<script data-main="js/scramble/_base" src="js/requirejs-0.25.0/require.js"></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment