szurubooru/client/js/views/posts_page_view.js

18 lines
344 B
JavaScript
Raw Normal View History

'use strict';
const views = require('../util/views.js');
class PostsPageView {
constructor() {
this._template = views.getTemplate('posts-page');
}
render(ctx) {
const target = ctx.target;
const source = this._template(ctx);
views.showView(target, source);
}
}
module.exports = PostsPageView;