Please sign in to comment.
View lookup should return something at least
Even if the path doesn't exist it's better for the lookup method to return the last path checked. Without a return value, if one attempts to render a path that doesn't exist one gets "TypeError: Bad argument" because the first param for fs.readFile is undefined. If the path is returned one gets the more helpful "Error: ENOENT, no such file or directory" along with the string for the path.
- Loading branch information...