Skip to content

Commit

Permalink
Minor tweaks.
Browse files Browse the repository at this point in the history
  • Loading branch information
addyosmani committed May 28, 2012
1 parent 703f210 commit ce9b25b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
4 changes: 3 additions & 1 deletion demo/alpha.hm
Expand Up @@ -3,7 +3,7 @@
// an example of a 'simple module'

// Simple client
module client from 'simpleclient';
module client at 'simpleclient';
// This uses the module 'math', import {sum, pi} and alerts it
// correctly

Expand Down Expand Up @@ -50,7 +50,9 @@ export epsilon;
export shared;

export DOM;

export DOMMunger;

export SafeDOM;


Expand Down
14 changes: 11 additions & 3 deletions demo/index.html
Expand Up @@ -6,6 +6,7 @@
<script type="text/javascript" src="lib/require.js"></script>
<script type="text/javascript" src="demo.js"></script>


</head>
<body>
<div class="container">
Expand All @@ -22,12 +23,11 @@ <h3>Live demos</h3>
<p>
<h4>Alpha</h4>
<pre>

// All modules below themselves contain at minimum
// an example of a 'simple module'

// Simple client
module client from 'simpleclient';
module client at 'simpleclient';
// This uses the module 'math', import {sum, pi} and alerts it
// correctly

Expand Down Expand Up @@ -86,7 +86,15 @@ <h4>Alpha</h4>
// Doesnt handle: Truly remote modules
// module underscore at 'http://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.3.3/underscore-min.js';


// Doesnt handle: Nested modules (but by choice as using AMD)
/*
module widgets {
export module button { ... }
export module alert { ... }
export module textarea { ... }
...
}
*/
</pre>

<h4>demo.js</h4>
Expand Down

0 comments on commit ce9b25b

Please sign in to comment.