Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Dan Williams
committed
Sep 11, 2011
1 parent
adf2331
commit 31c1cea
Showing
16 changed files
with
10,600 additions
and
7 deletions.
There are no files selected for viewing
This file contains 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/sh | ||
|
||
rm -rf ../demo-build | ||
node ../tools/r.js -o build.js |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
lib/main.js | ||
---------------- | ||
jade!views/welcome | ||
lib/../../jade.js | ||
lib/main.js |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>CoffeeScript Loader Plugin Demo</title> | ||
<script data-main="lib/main" src="lib/require.js"></script> | ||
</head> | ||
<body> | ||
<div id="main"></div> | ||
</body> | ||
</html> |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
h1 Jade Templates for RequireJS |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
({ | ||
appDir: '.', | ||
baseUrl: 'lib', | ||
//Uncomment to turn off uglify minification. | ||
//optimize: 'none', | ||
dir: '../demo-build', | ||
paths: { | ||
jade: '../../jade' | ||
}, | ||
//This pragma excludes the CoffeeScript compiler code | ||
//from the optimized source, since all CoffeeScript files | ||
//are converted and inlined into the main.js built file. | ||
//If you still want to allow dynamic loading of CoffeeScript | ||
//files after a build, comment out the pragmasOnSave section. | ||
pragmasOnSave: { | ||
excludeJade: true | ||
}, | ||
modules: [ | ||
{ | ||
name: "main" | ||
} | ||
] | ||
}) |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/sh | ||
|
||
rm -rf ../demo-build | ||
node ../tools/r.js -o build.js |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>CoffeeScript Loader Plugin Demo</title> | ||
<script data-main="lib/main" src="lib/require.js"></script> | ||
</head> | ||
<body> | ||
<div id="main"></div> | ||
</body> | ||
</html> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
require({ | ||
paths: { | ||
jade: '../../jade' | ||
} | ||
}, ['jade!views/welcome'], function(welcomeView){ | ||
main = document.getElementById('main') | ||
main.innerHTML = welcomeView(); | ||
}); |
Oops, something went wrong.