Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
56 lines (49 sloc) 1.56 KB
<!DOCTYPE html>
<meta charset="utf-8">
<title>Chaplin Example Application</title>
<link rel="stylesheet" href="css/main.css">
<!--[if lt IE 9]>
'abbr article aside audio canvas details figcaption figure footer header hgroup mark meter nav output progress section summary time video'.replace(/\w+/g,function(n){document.createElement(n)})
document.documentElement.className += 'js';
<h1>Chaplin Example Application</h1>
<p>This example uses a client-side Facebook login to display your Facebook likes.</p>
<p id="startup-loading">Loading…</p>
<div id="page-container">
<nav id="navigation-container"></nav>
<div id="content-container"></div>
<aside id="sidebar-container"></aside>
<div id="fb-root"></div>
This is a simple solution. We use the non-AMD versions of the core libraries
because nearly every module uses these libraries. For this demo, it's okay
that they create global objects (jQuery, $, _, Backbone, Handlebars etc.).
<script src="js/vendor/jquery-1.7.1.js"></script>
<script src="js/vendor/underscore-1.3.1.js"></script>
<script src="js/vendor/backbone-0.9.1.js"></script>
<script src="js/vendor/handlebars-1.0.0.beta.6.js"></script>
<script src="js/vendor/require-1.0.7.js"></script>
baseUrl: 'js/',
paths: {
text: 'vendor/require-text-1.0.7'
waitSeconds: 1,
// For easier development, disable browser caching:
urlArgs: 'bust=' + (new Date()).getTime()