/**
 * default view engine for server
 */ import { ViewEngineRender , ViewEngine } from '../share/type' ; import { ServerController } from './type' ; interface ToString { toString ( ) : string ; [ propName ] : any ; [ propName ] : any ; } const render = html => { if ( typeof html === 'string' ) { return html ; } else { return ( html as ToString ) . toString ( ) ; } } ; const viewEngine = { render } ; export default viewEngine ;