batman.js template

HTML

<script src="https://github.com/jashkenas/coffee-script/raw/master/extras/coffee-script.js"></script>
<script src="http://github.com/Shopify/batman/raw/master/lib/es5-shim.js"></script>
<script src="http://github.com/Shopify/batman/raw/master/lib/batman.js"></script>
<script src="http://github.com/Shopify/batman/raw/master/lib/batman.jquery.js"></script>
<link rel="stylesheet" href="http://batmanjs.org/examples/resources/reset.css">
<div data-yield="main"></div>
<div data-defineview="foos/index">
    <h1 data-bind="title">You should not see this</h1>
</div>

CoffeeScript

class App extends Batman.App
    @root 'foos#index'

class App.FoosController extends Batman.Controller
    routingKey: 'foos'
    index: ->
        @set 'title', 'Wow, it works!'

$ -> App.run()