Block content not render
Author: EmmanuelLefevreCreated Apr 11, 2024Updated Oct 14, 2025
Hello, i try to use Pug, it seems there is a problem with the block content rendering. Even if i put the home.pug file in the same directory as my layout.pug, nothing is render!!! Includes works though.. I've also try relative or absolute path on extends, downgrade my node version to v16 but nothing works.
layout.pug =>
doctype html
html(lang="fr")
head
meta(charset="UTF-8")
meta(name="viewport", content="width=device-width, initial-scale=1.0")
link(rel="stylesheet", href="assets/css/main.css")
script(src="https://unpkg.com/[email protected]")
title Artiwave
body
block header
include ../includes/header
block appContent
block footer
include ../includes/footerhome.pug =>
extends ./layout
block appContent
main
p Hello ArtiwaveNodeJS v20.10.0 Express 4.18.12 Pug 3.0.2
Source: pugjs/pug