Could you just alter the file name? Something like `var indexFile = 'index.' + this.env.options.jade ? 'jade' : 'html';`