var fs = require('fs');


fs.readFile('ejsPage.ejs', 'utf-8', function(error, data){

response.writeHead(200, {'Content-Type': 'text-html'});

response.end(ejs.render(data));

});

'nodejs' 카테고리의 다른 글

KILL PID  (0) 2017.11.15
node 죽이기  (0) 2017.10.03
async  (0) 2017.09.20
미들웨어  (0) 2017.09.14
npm start  (0) 2017.09.13

+ Recent posts