szurubooru/client/js/views/home_view.js
2016-04-06 22:36:04 +02:00

21 lines
465 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.name,
version: config.meta.version,
buildDate: config.meta.buildDate,
}));
}
}
module.exports = HomeView;