Skip to content

Commit

Permalink
Added example with RequireJS
Browse files Browse the repository at this point in the history
  • Loading branch information
Umakant Patil committed Dec 14, 2013
1 parent 17941f1 commit 2862b47
Show file tree
Hide file tree
Showing 11 changed files with 9,179 additions and 82 deletions.
80 changes: 0 additions & 80 deletions demo.html

This file was deleted.

12 changes: 12 additions & 0 deletions examples/requirejs/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>jSmart with RequireJS</title>
</head>
<body>
<div id="output"></div>
<script type="text/javascript" src="js/jsmart.js"></script>
<script type="text/javascript" src="js/require.js"></script>
<script type="text/javascript" src="js/index.js"></script>
</body>
</html>
10 changes: 10 additions & 0 deletions examples/requirejs/js/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

require.config({
'baseUrl': 'js',
'paths': {
't': '../',
'text': 'text',
}
});

require(['page']);
Loading

0 comments on commit 2862b47

Please sign in to comment.