Lightweight Static Site Generator (SSG) built with Svelte & Vite
graph
Dir[Local directory] --> Files(.leg files)
Dir[Local directory] --> Config(leger.config.js)
Files -- transpile --> Svelte{.svelte}
Config -- configure --> Svelte
Svelte -- scaffold --> SvelteKit(SvelteKit routes)
SvelteKit -- vite.build --> StaticHTML(Static HTML)
SvelteKit -- vite.dev --> HMR(Local dev server)
build
and dev
a bit more.leg
parsing and svelteKit project scaffolding as a vite-plugin.leg
filesection(columns="2")
text(size="large") This is awesome
text(size="small") ... and this might be too small
button() Sign up
...would generate
<Section columns="2">
<Text size="large">This is awesome</Text>
<Text size="small">... and this might be too small</Text>
</Section>
<Button>Sign up</Button>