UNPKG

@lionrockjs/central

Version:

Node.js MVC framework inspire from PHP Kohana Framework

10 lines (9 loc) 258 B
import { View } from '@lionrockjs/mvc'; export default class JSONView extends View { constructor(placeholder = "main", data = {}) { super(placeholder, data); } async render() { return JSON.stringify(this.data[this.file]); } }