12023.5.1 • Published 1 year ago
eta-slots-plugin v12023.5.1
eta slots plugin
all credits go to alexkar598, @see
pnpm add eta-slots-plugin
import * 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
<% } %>
12023.5.1
1 year ago