UNPKG

marko

Version:

UI Components + streaming, async, high performance, HTML templating for Node.js and the browser.

16 lines (14 loc) 291 B
import translateHTML from "./index[html]"; import translateVDOM from "./index[vdom]"; export default function (path) { const { hub: { file: { markoOpts }, }, } = path; if (markoOpts.output === "html") { translateHTML(path); } else { translateVDOM(path); } }