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

Nested components doesn't work (official doc example) #552

Closed
hanguokai opened this issue Jan 12, 2024 · 1 comment
Closed

Nested components doesn't work (official doc example) #552

hanguokai opened this issue Jan 12, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@hanguokai
Copy link

Version

2.0.2

Platform

No response

What steps will reproduce the bug?

I read the official document, and found nested components doesn't work.

{{ comp Container }}
  Content of the Container component

  {{ comp Button }}
    This is a button inside the Container component
  {{ /comp }}
{{ /comp }}
// container.vto
<section class="container">{{ content }}</section>
// button.vto
<button>{{ content }}</button>

How often does it reproduce? Is there a required condition?

No response

What is the expected behavior?

No response

What do you see instead?

{{ comp Button }} content {{ /comp Button }} nested in {{ comp Container }} {{ /comp }} doesn't rendered.

Additional information

No response

@hanguokai hanguokai added the bug Something isn't working label Jan 12, 2024
oscarotero added a commit that referenced this issue Jan 12, 2024
@oscarotero
Copy link
Member

oscarotero commented Jan 12, 2024

Thanks for bringing this up!
I just fixed it and will be available in Lume 2.0.3.

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

No branches or pull requests

2 participants