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" <!doctype html>
"http://www.w3.org/TR/html4/loose.dtd">
<html> <html>
<head> <head>
<meta charset="utf-8">
<title>Jasmine Spec Runner</title> <title>Jasmine Spec Runner</title>
<% css.forEach(function(style){ %>
<% css.forEach(function(style){ %>
<link rel="stylesheet" type="text/css" href="<%= style %>"> <link rel="stylesheet" type="text/css" href="<%= style %>">
<% }) %> <% }) %>
<% with (scripts) { %> <% with (scripts) { %>
<% [].concat(jasmine, vendor, helpers, src, specs, reporters, start).forEach(function(script){ %> <% [].concat(jasmine, vendor, helpers, src, specs, reporters, start).forEach(function(script){ %>
<script type="text/javascript" src="<%= script %>"></script> <script src="<%= script %>"></script>
<% }) %> <% }) %>
<% }; %> <% }; %>
</head> </head>
<body> <body>
</body> </body>
</html> </html>

View File

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