primatejs / primate

Web framework focused on flexibility and developer freedom
https://primatejs.com
MIT License
211 stars 9 forks source link

Support slots in web components #3

Closed terrablue closed 2 years ago

terrablue commented 2 years ago

SSR web components should support slots.

Parent component:

<child-component attribute="${value"}>
  <div>Some content</div>   
</child-component>

Child component:

<h1>Child component</h1>
<slot />
<div>More content</div>
terrablue commented 2 years ago

done as of 8c2f45a, currently supports only unnamed slots