- ViewEngine manages views directory with path resolution - Auto-loads mixins from views/mixins/ directory - Simplifies template paths (relative to views dir, auto-adds extension) - Updated example app to use ViewEngine - Added example mixins (buttons.pug, cards.pug) - Updated CLAUDE.md with ViewEngine documentation
12 lines
152 B
Plaintext
12 lines
152 B
Plaintext
mixin card(title)
|
|
.card
|
|
.card-header
|
|
h3= title
|
|
.card-body
|
|
block
|
|
|
|
mixin card-simple(title, body)
|
|
.card
|
|
h3= title
|
|
p= body
|