Skip to content

Instantly share code, notes, and snippets.

@colwilson
Created June 26, 2011 13:35
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 colwilson/1047622 to your computer and use it in GitHub Desktop.
Save colwilson/1047622 to your computer and use it in GitHub Desktop.
html for simple backbone with coffee
<!DOCTYPE html>
<html>
<head>
<title>Backbone Demo</title>
<script type="text/javascript" language="JavaScript"
src="http://cdnjs.cloudflare.com/ajax/libs/headjs/0.96/head.min.js">
</script>
</head>
<body>
<div id="counter">
<h1>Counter</h1>
<button id="inc-count">Increase</button>
<button id="dec-count">Decrease</button>
<div id="count"></div>
</div>
</body>
<script>
head.js(
"http://cdnjs.cloudflare.com/ajax/libs/jquery/1.6.1/jquery.min.js",
"http://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.1.6/underscore-min.js",
"http://cdnjs.cloudflare.com/ajax/libs/json2/20110223/json2.js",
"http://cdnjs.cloudflare.com/ajax/libs/backbone.js/0.3.3/backbone-min.js",
"/static/scripts/app.js"
);
</script>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment