Skip to content

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

@chasenlehara

Description

@chasenlehara

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>

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions