Created
December 28, 2012 02:56
-
-
Save mikefowler/4394067 to your computer and use it in GitHub Desktop.
Defining RequireJS modules + Coffeescript classes with the RequireJS sugar syntax. More detail here: http://requirejs.org/docs/whyamd.html#sugar
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
define (require) -> | |
$ = require 'jquery' | |
_ = require 'underscore' | |
Backbone = require 'backbone' | |
Handlebars = require 'handlebars' | |
View = require 'lib/view' | |
startTemplate = require 'text!templates/start.html' | |
class StartView extends View | |
id: 'start' | |
_template: Handlebars.compile(startTemplate) | |
initialize: (options)-> | |
# Initialize |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment