29 lines
542 B
JavaScript
29 lines
542 B
JavaScript
const buildTable = require('./buildArticleTable')
|
|
|
|
const buildPage = arr => {
|
|
const listString = buildTable(arr)
|
|
return `
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<body>
|
|
<h2>Haxor Newz</h2>
|
|
<h3>"uber l337"</h3>
|
|
<table>
|
|
<thead>
|
|
<th>Title</th>
|
|
<th>Link</th>
|
|
</thead>
|
|
${listString}
|
|
<tfoot>
|
|
ATTACK!
|
|
</tfoot>
|
|
</table>
|
|
<footer>Ⓐ anarchy planet</footer>
|
|
</body>
|
|
</html>
|
|
|
|
`
|
|
}
|
|
|
|
module.exports = buildPage
|