eta-slots-plugin
v12023.5.1
Published
all credits go to [alexkar598](https://github.com/alexkar598), [@see](https://github.com/eta-dev/eta/discussions/224#discussioncomment-5748686)
Readme
eta slots plugin
all credits go to alexkar598, @see
pnpm add eta-slots-pluginimport * as eta from "eta"
import etaSlotsPlugin from "eta-slots-plugin"
eta.configure({
plugins: [etaSlotsPlugin],
})layout.eta
<% slot("some-slot") ${ %>
some default content
<% } %>child.eta
<% layout("layout") %>
<% content("some-slot") ${ %>
some slot content
<% } %>