zilk is a light & flexible web framework
Zilk is a web framework: a runtime zilk
and a build tool zilker
.
Unlike most web frameworks, everything is written in pure javascript.
No extra template engines or DSLs. No Typescript slop.
It takes advantage of tagged template literals for writing html, svg, and css. All credit goes to @WebReflection for his ultra-lightweight and performant library, uhtml
.
The exports of zilk
provide the 'basics' for building websites. The core is isomorphic, allowing for server-side and client-side rendering to use the same code.
zilk
: render html, css, svgzilk/hydrate
: attach event handlers to UI componentszilk/router
: client-side routingzilk/fetch
: serve html pages from a server or a workerzilker
is a build tool anchored to input files and output files. Every project needs to generate different files based on unique inputs. By default, zilker
includes builds for UI components, html pages, and static assets, but the real power comes from extending and writing custom Inputs.
zilker
: CLI to build output files from input fileszilker/core
: JS API for custom build scriptszilker/inputs
: Entrypoint for built-in builds (Page
,View
,Asset
)