gallery.accords-library.com/client/js/views/home_view.js

24 lines
543 B
JavaScript
Raw Normal View History

2016-03-31 20:33:49 +00:00
'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');
}
2016-04-08 08:35:38 +00:00
render(ctx) {
const target = this.contentHolder;
const source = this.template({
2016-04-06 18:38:45 +00:00
name: config.name,
2016-03-31 21:18:08 +00:00
version: config.meta.version,
2016-04-05 15:57:26 +00:00
buildDate: config.meta.buildDate,
2016-04-08 08:35:38 +00:00
});
this.showView(target, source);
2016-03-31 20:33:49 +00:00
}
}
module.exports = HomeView;