// Function (Promise) hexo.route.set('index.html', function(){ returnnewPromise(function(resolve, reject){ resolve('index'); }); });
// Function (Callback) hexo.route.set('index.html', function(callback){ callback(null, 'index'); });
You can also set a boolean for whether a path has been modified or not. This can speed up file generation as it allows for ignoring the unmodified files.