aboutsummaryrefslogtreecommitdiff
path: root/src/view.js
blob: 399ac0312ce3f72e1538252179d36b92c6864070 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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();
    }



}