nue
nue copied to clipboard
`<slot for="content" />` doesn't work
Describe the Bug
<slot for="content" /> is ignored and does not get replaced with the rendered md.
Environment
- OS: Fedora Linux 40
- Nue 1.0.0-beta.2 • Bun 1.1.27
Minimal Reproduction
layout.html
<main>
<slot for="content" />
</main>
index.md
# title
result:
<main></main>
expected:
<main>
<h1>title</h1>
</main>
Probably works currently with <slot for="layout.article" />.
Thinking of changing the name to <slot for="layout.content" /> and updating the docs
Closing, as docs are fixed on dev