ENOENT error in Pug include path resolution
Pug resolves include and extends module paths using Node.js resolution rules relative to the source template file's directory, not the process working directory. When a template located in a subdirectory is rendered from a different entry point, the resolution scope shifts, potentially causing ENOENT errors for partials or layouts that exist relative to the