Initial Commit ES6 barebone

This commit is contained in:
Indrajith K L
2017-11-02 13:31:13 +05:30
commit 70a7e6c3c2
13 changed files with 184 additions and 0 deletions

26
src/myview.js Normal file
View File

@@ -0,0 +1,26 @@
import Backbone from 'backbone';
import * as _ from 'underscore';
import $ from 'jquery';
import Mustache from 'mustache';
export default class MyView extends Backbone.View {
constructor() {
super();
}
initialize() {
this.el = '#myarea';
this.$el = $(this.el);
this.template = 'Hello';
this.render();
}
render() {
console.log(this.el)
this.$el.html(Mustache.render(this.template));
}
}