ranui
Version:
A framework-agnostic Web Components UI library built on native custom elements, with TypeScript types, light/dark theming, SSR and PWA support.
22 lines (21 loc) • 418 B
JavaScript
import { i as n } from "./ssr-DSGwPtEd.js";
import { clearSSGPath as o, setSSGPath as i, useRouter as S } from "./utils/router.js";
function c(t, r) {
i(r);
try {
return n(t);
} finally {
o();
}
}
function m(t, r) {
const a = S();
return (r?.paths ?? a?.getStaticPaths() ?? []).map((e) => ({
path: e,
html: c(t(), e)
}));
}
export {
m as generateStaticPages,
c as renderStaticPage
};