Skip to content

Instantly share code, notes, and snippets.

@Rob-ot
Created March 29, 2012 01:35
Show Gist options
  • Save Rob-ot/2232305 to your computer and use it in GitHub Desktop.
Save Rob-ot/2232305 to your computer and use it in GitHub Desktop.
Template View for Backbone + AMD
// use this as a starting point when adding a view
define([
'text!views/-------.html',
'views/View'
],
function (
template,
View
) {
'use strict'
return View.extend({
template: template,
initialize: function () {
}
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment