UNPKG

ckn.backend

Version:

CKN Framework for Backend

33 lines (26 loc) 525 B
import {Page} from "./Page.js"; class Theme extends Page { #viewFile = null; get viewFile() { return this.#viewFile; } set viewFile(value) { this.#viewFile = value; } #views = []; get views() { return this.#views; } addView(view) { this.#views.push(view); return this; } constructor() { super(); this.viewFile = ""; } async render(session) { session.render(this.#viewFile, this); } } export {Theme}