node app html generate

Solutions on MaxInterview for node app html generate by the best coders in the world

showing results for - "node app html generate"
Miguel
13 Aug 2020
1const generatePage = (name, github) => {
2  return `
3  <!DOCTYPE html> 
4  <html lang="en"> 
5  <head>
6    <meta charset="UTF-8">
7    <meta name="viewport" content="width=device-width, initial-scale=1.0">
8    <meta http-equiv="X-UA-Compatible" content="ie=edge">
9    <title>Portfolio Demo</title>
10  </head>
11
12  <body>
13    <h1>${name}</h1>
14    <h2><a href="https://github.com/${github}">Github</a></h2>
15  </body>
16  </html>
17  `;
18};