forked from norm2782/JCU
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git-svn-id: https://svn.science.uu.nl/repos/edu.3555003.wiskunded/trunk@59 46e4088a-c2b5-4d24-90db-838aeec2e325
- Loading branch information
3555003
committed
Apr 9, 2011
1 parent
d33e4de
commit a42211e
Showing
25 changed files
with
844 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | ||
<link rel="stylesheet" href="web/css/main.css" type="text/css" media="screen"> | ||
<script src="web/js/vendor/brunch-0.6.min.js"></script> | ||
<script src="web/js/concatenation.js"></script> | ||
<script src="web/js/templates.js"></script> | ||
</head> | ||
<body> | ||
</body> |
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,16 @@ | ||
html{margin:0;padding:0;border:0} | ||
body,div,span,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,code,del,dfn,em,img,q,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,dialog,figure,footer,header,hgroup,nav,section{margin:0;padding:0;border:0;font-weight:inherit;font-style:inherit;font-size:100%;font-family:inherit;vertical-align:baseline} | ||
article,aside,dialog,figure,footer,header,hgroup,nav,section{display:block} | ||
body{line-height:1.5;background:#fff} | ||
table{border-collapse:separate;border-spacing:0} | ||
caption,th,td{text-align:left;font-weight:normal;float:none} | ||
table,th,td{vertical-align:middle} | ||
blockquote:before,blockquote:after,q:before,q:after{content:""} | ||
blockquote,q{quotes:"" ""} | ||
a img{border:none} | ||
:focus{outline:0} | ||
body{background:#a1afc9;font:bold 18px "Helvetica Neue",Arial,Helvetica,sans-serif} | ||
ul{list-style-type:none} | ||
a,a:visited{color:#db672e;text-decoration:none} | ||
#home-view{width:1000px;height:100%;margin:20px auto;} | ||
#home-view #content{background:#fff;padding:20px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px} |
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,46 @@ | ||
(function(){window.app.templates = {};window.app.templates.home = function(__obj) { | ||
if (!__obj) __obj = {}; | ||
var __out = [], __capture = function(callback) { | ||
var out = __out, result; | ||
__out = []; | ||
callback.call(this); | ||
result = __out.join(''); | ||
__out = out; | ||
return __safe(result); | ||
}, __sanitize = function(value) { | ||
if (value && value.ecoSafe) { | ||
return value; | ||
} else if (typeof value !== 'undefined' && value != null) { | ||
return __escape(value); | ||
} else { | ||
return ''; | ||
} | ||
}, __safe, __objSafe = __obj.safe, __escape = __obj.escape; | ||
__safe = __obj.safe = function(value) { | ||
if (value && value.ecoSafe) { | ||
return value; | ||
} else { | ||
if (!(typeof value !== 'undefined' && value != null)) value = ''; | ||
var result = new String(value); | ||
result.ecoSafe = true; | ||
return result; | ||
} | ||
}; | ||
if (!__escape) { | ||
__escape = __obj.escape = function(value) { | ||
return ('' + value) | ||
.replace(/&/g, '&') | ||
.replace(/</g, '<') | ||
.replace(/>/g, '>') | ||
.replace(/"/g, '"'); | ||
}; | ||
} | ||
(function() { | ||
(function() { | ||
__out.push('<div id="content">\n <h1>JCU: Wiskunde D</h1>\n <ul>\n <li><a href="https://github.com/brunch/brunch/wiki">Github Wiki</a></li>\n <li><a href="https://github.com/brunch/brunch/issues">Github Issues</a></li>\n <li><a href="https://github.com/brunch/example-todos">Todos Example App</a></li>\n <li><a href="https://github.com/brunch/example-twitter">Twitter Example App</a></li>\n </ul>\n</div>\n'); | ||
}).call(this); | ||
|
||
}).call(__obj); | ||
__obj.safe = __objSafe, __obj.escape = __escape; | ||
return __out.join(''); | ||
};}).call(this); |
50 changes: 50 additions & 0 deletions
50
resources/static/brunch/build/web/js/vendor/brunch-0.6.min.js
Large diffs are not rendered by default.
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,5 @@ | ||
var eco = require('./vendor/eco/eco'); | ||
var fusion = require('fusion'); | ||
exports.createTemplateObject = function(content, source, directoryPrefix) { | ||
return eco.compile(content, { identifier: fusion.templateNamespace(source, directoryPrefix)}); | ||
}; |
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 @@ | ||
hook: "brunch/config/fusion/hook.js" | ||
output: "brunch/build/web/js/templates.js" | ||
templateExtension: "eco" | ||
namespace: "window.app" |
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,2 @@ | ||
require("coffee-script"); | ||
module.exports = require("./eco/compiler"); |
18 changes: 18 additions & 0 deletions
18
resources/static/brunch/config/fusion/vendor/eco/eco/command.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,18 @@ | ||
(function() { | ||
var eco, fs; | ||
fs = "fs"; | ||
eco = require("eco"); | ||
exports.run = function() { | ||
var source, stdin; | ||
source = ""; | ||
stdin = process.openStdin(); | ||
stdin.on("data", function(buffer) { | ||
if (buffer) { | ||
return source += buffer.toString(); | ||
} | ||
}); | ||
return stdin.on("end", function() { | ||
return console.log(eco.compile(source)); | ||
}); | ||
}; | ||
}).call(this); |
35 changes: 35 additions & 0 deletions
35
resources/static/brunch/config/fusion/vendor/eco/eco/compiler.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,35 @@ | ||
(function() { | ||
var CoffeeScript, compile, eco, indent, preprocess; | ||
CoffeeScript = require("coffee-script"); | ||
preprocess = require("./preprocessor").preprocess; | ||
indent = require("./util").indent; | ||
module.exports = eco = function(source) { | ||
var module; | ||
(new Function("module", compile(source)))(module = {}); | ||
return module.exports; | ||
}; | ||
eco.preprocess = preprocess; | ||
eco.compile = compile = function(source, options) { | ||
var identifier, script, _ref; | ||
identifier = (_ref = options != null ? options.identifier : void 0) != null ? _ref : "module.exports"; | ||
if (!identifier.match(/\./)) { | ||
identifier = "var " + identifier; | ||
} | ||
script = CoffeeScript.compile(preprocess(source), { | ||
noWrap: true | ||
}); | ||
return "" + identifier + " = function(__obj) {\n if (!__obj) __obj = {};\n var __out = [], __capture = function(callback) {\n var out = __out, result;\n __out = [];\n callback.call(this);\n result = __out.join('');\n __out = out;\n return __safe(result);\n }, __sanitize = function(value) {\n if (value && value.ecoSafe) {\n return value;\n } else if (typeof value !== 'undefined' && value != null) {\n return __escape(value);\n } else {\n return '';\n }\n }, __safe, __objSafe = __obj.safe, __escape = __obj.escape;\n __safe = __obj.safe = function(value) {\n if (value && value.ecoSafe) {\n return value;\n } else {\n if (!(typeof value !== 'undefined' && value != null)) value = '';\n var result = new String(value);\n result.ecoSafe = true;\n return result;\n }\n };\n if (!__escape) {\n __escape = __obj.escape = function(value) {\n return ('' + value)\n .replace(/&/g, '&')\n .replace(/</g, '<')\n .replace(/>/g, '>')\n .replace(/\x22/g, '"');\n };\n }\n (function() {\n" + (indent(script, 4)) + "\n }).call(__obj);\n __obj.safe = __objSafe, __obj.escape = __escape;\n return __out.join('');\n};"; | ||
}; | ||
eco.render = function(source, data) { | ||
return (eco(source))(data); | ||
}; | ||
if (require.extensions) { | ||
require.extensions[".eco"] = function(module, filename) { | ||
var source; | ||
source = require("fs").readFileSync(filename, "utf-8"); | ||
return module._compile(compile(source), filename); | ||
}; | ||
} else if (require.registerExtension) { | ||
require.registerExtension(".eco", compile); | ||
} | ||
}).call(this); |
75 changes: 75 additions & 0 deletions
75
resources/static/brunch/config/fusion/vendor/eco/eco/preprocessor.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.