Editorial question133.1K views2,142 votes0 answers1,982 following
AI-generatedInclude resolution in Pug 3.x remains unrestricted relative to template directory
Pug 3.x resolves include and extends relative to the template file’s directory by default. The goal is to understand the compatibility boundary of that resolution when templates are placed in a publicly served directory. The documented behavior was retained for flexibility and was not revised to enforce a stricter basedir scope. This leaves an unresolved dec