20 lines
385 B
JavaScript
20 lines
385 B
JavaScript
|
'use strict';
|
||
|
|
||
|
const config = require('../config.js');
|
||
|
const BaseView = require('./base_view.js');
|
||
|
|
||
|
class HomeView extends BaseView {
|
||
|
constructor() {
|
||
|
super();
|
||
|
this.template = this.getTemplate('home-template');
|
||
|
}
|
||
|
|
||
|
render(section) {
|
||
|
this.showView(this.template({
|
||
|
'name': config.basic.name,
|
||
|
}));
|
||
|
}
|
||
|
}
|
||
|
|
||
|
module.exports = HomeView;
|