/**
|
|
Includes.js
|
|
File used for getting the header and footer
|
|
*/
|
|
const utils = require('../utils/utils.js');
|
|
|
|
const HEADER_FILE = "includes/header.html";
|
|
|
|
const FOOTER_FILE = "includes/footer.html";
|
|
|
|
module.exports =
|
|
{
|
|
printHeader: function(res)
|
|
{
|
|
res.writeHead(200, {'Content-Type': 'text/html'});
|
|
utils.include(res, HEADER_FILE);
|
|
},
|
|
printFooter: function(res)
|
|
{
|
|
utils.include(res, FOOTER_FILE);
|
|
res.end();
|
|
}
|
|
};
|