Skip to content

Commit

Permalink
Working dojo+dijit curl config
Browse files Browse the repository at this point in the history
  • Loading branch information
briancavalier committed Sep 7, 2011
0 parents commit 3d42009
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[submodule "js/wire"]
path = js/wire
url = git://github.com/briancavalier/wire.git
[submodule "js/curl"]
path = js/curl
url = git://github.com/unscriptable/curl.git
40 changes: 40 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title>Dojoconf 2011 Demo</title>
<script type="text/javascript">
(function(global) {

global.curl = {
baseUrl: 'js/',
paths: {
curl: 'curl/src/curl'
// wire: './wire'
},
pluginPath: 'curl/plugin',
packages: [
{ name: 'dojo', path: 'dojo', lib: '.', main: './lib/main-browser' },
{ name: 'dijit', path: 'dijit', lib: '.', main: './lib/main' },
{ name: 'sizzle', path: 'wire/support/sizzle', main: 'sizzle' },
{ name: 'aop', path: 'wire/support/aop', main: 'aop' },
// { name: 'when', path: 'wire/support/when', main: 'when' },
{ name: 'wire', path: 'wire', lib: './wire', main: 'wire' }
]
};

})(window);
</script>

<script type="text/javascript" src="js/curl/src/curl.js"></script>

<script type="text/javascript">
curl(['curl/dojo16Compat', 'wire!hc/spec/main'], function(compat, context) {
context.test.innerHTML = 'wired';
});
</script>
</head>
<body>
<div id="test"></div>
</body>
</html>
1 change: 1 addition & 0 deletions js/curl
Submodule curl added at 4fd3d5
10 changes: 10 additions & 0 deletions js/hc/spec/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
define({
plugins: [
{ module: 'wire/debug' },
{ module: 'wire/dojo/dom' },
{ module: 'wire/dojo/dijit' },
{ module: 'wire/dojo/events' },
{ module: 'wire/dojo/store' }
],
test: { $ref: 'dom.query!#test', i: 0 }
});
1 change: 1 addition & 0 deletions js/wire
Submodule wire added at b51b66

0 comments on commit 3d42009

Please sign in to comment.