"use strict"; const { fs, expand } = require( "../export.utils" ); const template = require( "./html" ); module.exports = async ( { ga, input, lib, layout, title } = {} ) => { const EDITOR_VIEW = await fs.readFile( expand( "editor.html", __dirname ), "utf8" ); const content = `
Loading...
${ EDITOR_VIEW.replace( "$$DEFAULT_INPUT", input ) }
`; return template( { bodyStart: "", bodyEnd: "", content, ga, head: ``, layout: layout || "online", title, } ); };