14 lines
302 B
JavaScript
14 lines
302 B
JavaScript
"use strict";
|
|
|
|
const views = require("../util/views.js");
|
|
|
|
const template = views.getTemplate("user-summary");
|
|
|
|
class UserSummaryView {
|
|
constructor(ctx) {
|
|
this._hostNode = ctx.hostNode;
|
|
views.replaceContent(this._hostNode, template(ctx));
|
|
}
|
|
}
|
|
|
|
module.exports = UserSummaryView;
|