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

Add a “Use” section to the <content> docs #264

Open
chasenlehara opened this issue Jun 25, 2018 · 1 comment
Open

Add a “Use” section to the <content> docs #264

chasenlehara opened this issue Jun 25, 2018 · 1 comment

Comments

@chasenlehara
Copy link
Member

It should include some examples, like this component:

Component.extend( {
    tag: "my-tag",
    view: stache( "<h1><content>Hello world</content></h1>" )
} );

Used like this:

<my-tag></my-tag>

Renders:

<my-tag><h1>Hello world</h1></my-tag>

While this:

<my-tag>Hello friend</my-tag>

Renders:

<my-tag><h1>Hello friend</h1></my-tag>
@chasenlehara
Copy link
Member Author

It’d also be nice to refer people to slots/templates when they want to be able to have multiple pieces of content inserted into their template.

michaelzcheng pushed a commit that referenced this issue Jul 24, 2018
michaelzcheng pushed a commit that referenced this issue Jul 24, 2018
chasenlehara added a commit that referenced this issue Aug 6, 2018
- Add a link to the can-slot and can-template docs
- Fix the grammar

Closes #264
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

2 participants