aboutsummaryrefslogtreecommitdiff
path: root/src/view.js
diff options
context:
space:
mode:
authorIndrajith K L2017-11-02 13:31:13 +0530
committerIndrajith K L2017-11-02 13:31:13 +0530
commit70a7e6c3c2019346ea8ad5c52feb464efa0531e5 (patch)
tree4bf9315ab9979481c631775007ec3ff05d1ee61e /src/view.js
downloades6-backbone-70a7e6c3c2019346ea8ad5c52feb464efa0531e5.tar.gz
es6-backbone-70a7e6c3c2019346ea8ad5c52feb464efa0531e5.tar.bz2
es6-backbone-70a7e6c3c2019346ea8ad5c52feb464efa0531e5.zip
Initial Commit ES6 barebone
Diffstat (limited to 'src/view.js')
-rw-r--r--src/view.js28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/view.js b/src/view.js
new file mode 100644
index 0000000..399ac03
--- /dev/null
+++ b/src/view.js
@@ -0,0 +1,28 @@
+import Backbone from 'backbone';
+import * as _ from 'underscore';
+import $ from 'jquery';
+import Mustache from 'mustache';
+import MyView from './myview';
+
+
+export default class TestView extends Backbone.View {
+ constructor() {
+ super();
+ }
+
+ initialize() {
+ this.el = 'li';
+ this.$el = $(this.el);
+ this.template = '<div id="myarea"></div>'
+ this.render();
+ }
+
+ render() {
+ console.log(this.el)
+ this.$el.html(Mustache.render(this.template));
+ new MyView();
+ }
+
+
+
+}