O'Reilly logo
  • Darren Seet thinks this is interesting:

res.sendfile('layouts/posts.html')

Note

It should be res.sendfile('layouts/post.html', { root: dirname }) or res.sendfile(dirname + 'layouts/post.html')