nue icon indicating copy to clipboard operation
nue copied to clipboard

`<slot for="content" />` doesn't work

Open nobkd opened this issue 1 year ago • 1 comments

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>

nobkd avatar Sep 18 '24 14:09 nobkd

Probably works currently with <slot for="layout.article" />.

Thinking of changing the name to <slot for="layout.content" /> and updating the docs

tipiirai avatar Sep 24 '24 08:09 tipiirai

Closing, as docs are fixed on dev

nobkd avatar Oct 13 '24 12:10 nobkd