generator-base-backbone
Version:
Backbone.js basic skeleton for webapp development. With RequireJS, Bootstrap, Sass, and templating with Pug and Lodash. Also with JSHint and Grunt.
11 lines • 337 B
JavaScript
;
define(['backbone', 'jquery', 'underscore', 'text!../../templates/footer.html'], function(Backbone, $, _, FooterTemplate) {
var FooterView = Backbone.View.extend({
el: $('#footer'),
template: _.template(FooterTemplate),
render: function() {
this.$el.append(this.template());
}
});
return new FooterView();
});