Diagnosing Missing Layouts in Pug Extend/Block Inheritance
Learn how to spot why a Pug child template renders without its layout, check the extends line, block names, and file paths, and apply fixes.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Learn how to spot why a Pug child template renders without its layout, check the extends line, block names, and file paths, and apply fixes.
Context The Less extend feature ( :extend(.class) or @extend .class ) copies declarations from a source selector to a target selector, but the specification treats the operation as a textual selector append. When the source selector contains pseudo-classes ( :hover , :focus ) or pseudo-elements ( ::before , ::after ), those tokens are not propagated to the e
Context Dart Sass 2.0+ deprecates @import in favor of @use with explicit namespaces. While @use prevents global namespace collisions and enables @forward for curated APIs, it introduces a hard constraint: @extend only resolves within the same module scope. A %placeholder defined in _a.scss cannot be extended from _b.scss when _a is loaded via @use . Trade-of
Trade‑off Overview Stylus offers two primary mechanisms for reusing style blocks: mixins and the @extend directive. Mixins allow parameterization but duplicate properties each invocation, while @extend collapses selectors into a single rule set, reducing output size at the cost of limited argument support and potential specificity complications. Key Unresolv