diff options
Diffstat (limited to 'src/myview.js')
-rw-r--r-- | src/myview.js | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/myview.js b/src/myview.js new file mode 100644 index 0000000..026f563 --- /dev/null +++ b/src/myview.js @@ -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)); + } + + + +} |