<!doctype html>
<html>
<head>
  <meta charset="utf-8">
  <title>Jasmine Spec Runner</title>

  <% with (scripts) { %>
  <% [].concat(jasmine, vendor, helpers).forEach(function(script){ %>
  <script src="<%= script %>"></script>
  <% }) %>
  <% }; %>

  <script src="<%= temp %>/require.js"></script>
  <script>
    <% if (options.requireConfig) { %>
      require.config(<%= JSON.stringify(options.requireConfig) %>);
    <% } %>
  </script>
  <% css.forEach(function(style){ %>
  <link rel="stylesheet" type="text/css" href="<%= style %>">
  <% }) %>
  <script>
    require([
      <% scripts.src.forEach(function(script, i){ %>
      <% if (options.requireConfig && options.requireConfig.baseUrl) script = script.replace(new RegExp('^' + options.requireConfig.baseUrl),""); %>
      <% if (options.loaderPlugin) script = options.loaderPlugin + '!' + script %>
        '<%= script.replace(/\.js$/,"") %>' <%= i < scripts.src.length-1 ? ',' : '' %>
        <% }) %>
    ],
    function(){
      require(['<%= [].concat(scripts.specs,scripts.reporters).join("','") %>'], function(){
        require(['<%= scripts.start.join("','") %>'], function(){
          // good to go! Our tests should already be running.
        })
      })
    }
    )
  </script>
</head>
<body>
</body>
</html>
