szurubooru/client/js/views/not_found_view.js

18 lines
412 B
JavaScript

'use strict';
const config = require('../config.js');
const views = require('../util/views.js');
class NotFoundView {
constructor() {
this._template = views.getTemplate('not-found');
}
render(ctx) {
const target = document.getElementById('content-holder');
const source = this._template(ctx);
views.showView(target, source);
}
}
module.exports = NotFoundView;