vasille
Version:
The first Developer eXperience Orientated front-end framework (core library).
30 lines (29 loc) • 690 B
JavaScript
import { Fragment, Root } from "./node.js";
/**
* Represents a Vasille.js application
* @class App
* @extends AppNode
*/
export class App extends Root {
/**
* Constructs an app node
* @param node {Element} The root of application
* @param input
*/
constructor(node, runner, input) {
super(input, runner);
this.node = node;
}
appendNode(node) {
this.runner.appendChild(this.node, node);
}
}
export class Portal extends Fragment {
constructor(input, runner) {
super(input, runner, ":portal");
this.node = input.node;
}
appendNode(node) {
this.runner.appendChild(this.node, node);
}
}