Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function renderHTML(path,response){
- fs.readFile(path,null,function(error,data){
- if(error){
- response.writeHead(404);
- response.write('file not found');
- }else{
- response.write(data);
- }
- response.end();
- })
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement