Skip to content

Instantly share code, notes, and snippets.

@ddsilva
Created January 17, 2014 14:12
Show Gist options
  • Select an option

  • Save ddsilva/8473909 to your computer and use it in GitHub Desktop.

Select an option

Save ddsilva/8473909 to your computer and use it in GitHub Desktop.
index.html (DNE)
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
<link rel="stylesheet" href="public/css/vendor/normalize.css">
<link rel="stylesheet" href="public/css/vendor/bootstrap.min.css">
<link rel="stylesheet" href="public/css/dne.min.css">
<script src="public/js/vendor/modernizr-2.6.2.min.js"></script>
</head>
<body>
<!--[if lt IE 7]>
<p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
<![endif]-->
<!-- Add your site or application content here -->
<div id="app-container"></div>
<script src="public/js/vendor/jquery-1.10.2.min.js"></script>
<!-- <script src="public/js/vendor/jquery.validate-1.11.1.min.js"></script> -->
<script src="public/js/vendor/bootstrap-2.3.2.min.js"></script>
<script src="public/js/vendor/require-2.1.9.min.js"></script>
<script>
require.config({
baseUrl: 'public/js/app',
paths: {
'jquery' : '../vendor/jquery-1.10.2.min',
'underscore' : '../vendor/lodash-2.4.1.min',
'backbone' : '../vendor/backbone-1.1.0.min',
'handlebars' : '../vendor/handlebars-1.3.0.min',
'text' : '../vendor/require-text-2.0.10.min',
'underscore.string' : '../vendor/underscore.string-2.3.0.min',
'livequery' : '../vendor/jquery.livequery-1.3.6.min',
'typeahead' : '../vendor/typeahead-0.9.3.min',
'chaplin' : '../vendor/chaplin-0.12.0.min',
'validate' : '../vendor/jquery.validate-1.11.1.min',
'meiomask' : '../vendor/meiomask-1.1.13.min',
'recaptcha' : '//www.google.com/recaptcha/api/js/recaptcha_ajax'
},
shim: {
'underscore': {exports: '_'},
'backbone': {
deps: ['underscore'],
exports: 'Backbone'
},
'handlebars': {exports: 'Handlebars'},
'recaptcha': { exports: 'Recaptcha' },
}
});
require(['application', 'routes'], function(App, Routes) {
window.AppData = {
API_URL : 'api',
CNTRL_GLOBALS : {}
};
return new App({
routes : Routes,
controllerSuffix : '_controller',
pushState : false
// root : '/',
});
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment