Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
nobkd opened this issue Sep 18, 2024 · 1 comment
Open

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

nobkd opened this issue Sep 18, 2024 · 1 comment
Assignees
Labels
bug nuekit Related to nuekit package urgent Something isn't working

Comments

@nobkd
Copy link
Collaborator

nobkd commented Sep 18, 2024

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 nobkd added bug nuekit Related to nuekit package urgent Something isn't working labels Sep 18, 2024
@tipiirai tipiirai self-assigned this Sep 24, 2024
@tipiirai
Copy link
Contributor

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug nuekit Related to nuekit package urgent Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants