MCPcopy Create free account
hub / github.com/neomjs/neo / createIndexHtml

Function createIndexHtml

buildScripts/create/example.mjs:60–78  ·  view source on GitHub ↗
(classFolder, title)

Source from the content-addressed store, hash-verified

58}
59
60function createIndexHtml(classFolder, title) {
61 const template = [];
62
63 template.push(
64 '<!DOCTYPE HTML>',
65 '<html>',
66 '<head>',
67 ' <meta name="viewport" content="width=device-width, initial-scale=1">',
68 ' <meta charset="UTF-8">',
69 ` <title>Neo ${title}</title>`,
70 '</head>',
71 '<body>',
72 ' <script src="../../../src/MicroLoader.mjs" type="module"></script>',
73 '</body>',
74 '</html>`');
75
76 const file = `${classFolder}/index.html`;
77 fs.writeFileSync(file, `${template.join(os.EOL)}${os.EOL}`);
78}
79
80function createNeoConfig(classFolder, componentPath) {
81 const template = [];

Callers 1

example.mjsFile · 0.85

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected