Skip to content

Instantly share code, notes, and snippets.

@evolvingtech
Created March 20, 2015 17:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save evolvingtech/18893351c6356e302c74 to your computer and use it in GitHub Desktop.
Save evolvingtech/18893351c6356e302c74 to your computer and use it in GitHub Desktop.
fixed version of handlebars that plays nicely with tests-crosspage.js
<!doctype html>
<html>
<head class="no-js">
<title>Meadowlark Travel</title>
{{#if showTests}}
<link rel="stylesheet" href="/vendor/mocha.css">
{{/if}}
{{{_sections.head}}}
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="/vendor/bootstrap/css/bootstrap.min.css">
<style>
body {
padding-top: 50px;
padding-bottom: 20px;
}
</style>
<link rel="stylesheet" href="/vendor/bootstrap/css/bootstrap-theme.min.css">
<link rel="stylesheet" href="/css/main.css">
<script src="/vendor/js/modernizr-2.6.2-respond-1.1.0.min.js"></script>
<script src="//code.jquery.com/jquery-2.0.2.min.js"></script>
</head>
<body>
<header><img src="/img/etc_logo02.jpg" alt="ETC Logo"></header>
<div class="container">
{{{body}}}
<hr>
<footer>
<p>&copy;2015 Evolving Technologies Corporation</p>
</footer>
</div> <!-- /container -->
{{{_sections.jquery}}}
{{#if showTests}}
<div id="mocha"></div>
<script src="/vendor/mocha.js"></script>
<script src="/vendor/chai.js"></script>
<script>
mocha.ui('tdd');
var assert = chai.assert;
</script>
<script src="/qa/tests-global.js"></script>
{{#if pageTestScript}}
<script src="{{pageTestScript}}"></script>
{{/if}}
<script>mocha.run();</script>
{{/if}}
<script src="/vendor/bootstrap/js/bootstrap.min.js"></script>
<script src="/js/main.js"></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment