require('template.jade') instead of require('template.jade.html')
Remove `!file.contents` check.