3️⃣ Injection Flow
1 ┌─────────────────────┐2 │ Load user layout.pug │3 └─────────┬───────────┘4 │5 ▼6 ┌───────────────────┐7 │ Strip comments │8 └─────────┬─────────┘9 │10 ▼11 ┌─────────────────────────────┐12 │ Build injection string │13 │ (force reload + default │14 │ content/scripts if missing) │15 └─────────┬───────────┬───────┘16 │ │17 │ ▼18 │ ┌───────────────┐19 │ │ Inject into │20 │ │ <body> tag │21 │ │ maintain │22 │ │ indentation │23 │ └─────┬─────────┘24 ▼ │25 ┌─────────────────────────────┐26 │ Compile final Pug │27 │ Render with locals │28 └─────────────────────────────┘