Render pug blocks without a separate template

This commit is contained in:
Cadence Ember
2026-09-15 23:42:06 +12:00
parent 9058b60efe
commit 2959fd8ae3
15 changed files with 199 additions and 126 deletions
+1 -1
View File
@@ -98,7 +98,7 @@ function tryStatic(event, fallthrough) {
getContents: id => {
if (id.match(/\.pug$/)) {
const path = join(publicDir, id)
return pugSync.renderPath(event, path, {})
return pugSync.renderPath(event, path, null, {})
} else {
return fs.createReadStream(join(publicDir, id))
}