Created
April 2, 2015 17:15
-
-
Save majornorth/a998c637517aed67037e to your computer and use it in GitHub Desktop.
Marionette Static View
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPEhtml> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Marionette Contact Manager</title> | |
<link href="./assets/css/bootstrap.css" rel="stylesheet"> | |
<link href="./assets/css/application.css" rel="stylesheet"> | |
</head> | |
<body> | |
<div class="navbar navbar-inverse navbar-fixed-top"> | |
<div class="navbar-inner"> | |
<div class="container"> | |
<span class="brand">Contact manager</span> | |
</div> | |
</div> | |
</div> | |
<div class="container"> | |
<p>Here is static content in the web page. You'll notice that it gets replaced by our app as soon as we start it.</p> | |
</div> | |
<script src="./assets/js/vendor/jquery.js"></script> | |
<script src="./assets/js/vendor/json2.js"></script> | |
<script src="./assets/js/vendor/underscore.js"></script> | |
<script src="./assets/js/vendor/backbone.js"></script> | |
<script src="./assets/js/vendor/backbone.marionette.js"></script> | |
<script type="text/javascript"> | |
var ContactManager = new Marionette.Application(); | |
ContactManager.on("initialize:after", function(){ | |
console.log("ContactManager has started!"); | |
}); | |
ContactManager.start(); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment