💥 simulateSlots

This commit is contained in:
jaandrle committed 2023-11-24 16:16:08 +01:00
1 parent 6a293d75a6
commit fb02635d24
20 files changed
+1263 -1299

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
import "../global.css.js";
import { el, simulateSlots } from "deka-dom-el";
import { header } from "./head.html.js";
import { prevNext } from "../components/pageUtils.html.js";
/** @param {import("../types.d.ts").PageAttrs} attrs */
export function simplePage({ pkg, info }){
return simulateSlots(el().append(
el(header, { info, pkg }),
el("main").append(
el("slot"),
el(prevNext, info)
)
));
}