gj-wes / template-compiler

Simple transformer to compile HTML components into single output file
0 stars 0 forks source link

Add default slot functionality #1

Open gj-wes opened 3 months ago

gj-wes commented 3 months ago

Improve usability of slots by adding the ability to add a default, unamed, slot to a component.

<h1>
  <slot />
</h1>
<component src="main-heading.html">
  Some copy here
</component>

This will allow named slots to properly be used for adding content in multiple places for a component.