html5 templates

This commit is contained in:
Tyler Kellen 2012-11-28 10:52:22 -06:00
parent e1fc9c1c07
commit e3e225cdb9
2 changed files with 8 additions and 18 deletions

View File

@ -1,21 +1,17 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Jasmine Spec Runner</title>
<% css.forEach(function(style){ %>
<% css.forEach(function(style){ %>
<link rel="stylesheet" type="text/css" href="<%= style %>">
<% }) %>
<% }) %>
<% with (scripts) { %>
<% [].concat(jasmine, vendor, helpers, src, specs, reporters, start).forEach(function(script){ %>
<script type="text/javascript" src="<%= script %>"></script>
<script src="<%= script %>"></script>
<% }) %>
<% }; %>
</head>
<body>
</body>
</html>

View File

@ -1,26 +1,22 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Jasmine Spec Runner</title>
<script src="<%= options.requirejs %>"></script>
<script>
require.config({
baseUrl : '<%= options.baseUrl %>'
});
</script>
<% css.forEach(function(style){ %>
<link rel="stylesheet" type="text/css" href="<%= style %>">
<% }) %>
<% with (scripts) { %>
<% [].concat(jasmine, vendor, helpers).forEach(function(script){ %>
<script type="text/javascript" src="<%= script %>"></script>
<script src="<%= script %>"></script>
<% }) %>
<% }; %>
<script>
require([
<% scripts.src.forEach(function(script, i){ %>
@ -36,9 +32,7 @@
}
)
</script>
</head>
<body>
</body>
</html>