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

Can't extend block in component #13

Open
Javey opened this issue Aug 28, 2018 · 0 comments
Open

Can't extend block in component #13

Javey opened this issue Aug 28, 2018 · 0 comments

Comments

@Javey
Copy link
Owner

Javey commented Aug 28, 2018

When pass block to a component, we can't extend it in sub-template.

<Component>
    <b:content>
        <b:body>we can't extend this block(body) in sub-template</b:body>
    </b:content>
</Component>
<b:parent>
     <b:body>the body can't pass to content block of parent's Component</b:body>
</b:parent>

But we can do this by defining parent template like bellow:

const body = <b:body>we can extend this block(body) in sub-template</b:body>

<Component>
    <b:content>{body}</b:content>
</Component>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant