/**
 * default view engine for client
 */ import { ViewEngineRender , ViewEngine } from '../share/type' ; import { ClientController } from './type' ; const render = ( html , _ , container ) => { if ( container ) { container . innerHTML = html as string ; } else { throw new Error ( `container is inexistent` ) ; } return container ; } ; const viewEngine = { render } ; export default viewEngine ;