eta-slots-plugin
TypeScript icon, indicating that this package has built-in type declarations

12023.5.1 • Public • Published

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
<% } %>

Readme

Keywords

none

Package Sidebar

Install

npm i eta-slots-plugin

Weekly Downloads

112

Version

12023.5.1

License

UNLICENSE

Unpacked Size

5.68 kB

Total Files

6

Last publish

Collaborators

  • devidw