BootstrapModal

by mgrassotti

HTML

<script src="https://github.com/downloads/wycats/handlebars.js/handlebars-1.0.0.beta.6.js"></script>
<script src="http://cloud.github.com/downloads/emberjs/ember.js/ember-latest.js"></script>
<script type="text/x-handlebars" data-template-name="application">
APPLICATION
<hr/>

</script>

CSS

body {
  padding: 2em;   
}

h1 { font-size: 2em; }

a {  
  color: blue;
  cursor: pointer;
}

.content {
  padding: 1em;   
}

CoffeeScript

App = Em.Application.create()
@App = App

App.ApplicationController = Em.Controller.extend(
)

App.ApplicationView = Em.View.extend(templateName: "application")


App.Router = Em.Router.extend
  enableLogging: true
  location: "hash"
  root: Em.Route.extend
    index: Em.Route.extend
      route: "/"

jQuery ->
  App.initialize()