Xylit SSG is in a very early stage of development. Syntax and API are not stable and may change at any time. While the core functionality already has been implemented, some features are still missing.
Why Another Static Site Generator?
The JavaScript ecosystem already has many different static page generators to offer. Each of these generators has its own template language. With the release of tagged template literals, there is now a possibility to realize templating with native features alone. The availability of custom loaders in NodeJS also makes it possible to provide a DX-friendly development environment without having to use complex build tools.
Features
Expressive Syntax
Xylit heavily relies on tagged template literals, which makes composing differend DSL's a breeze:
- No Need for hacky Markdown or YAML injections!
- No need for learning a new Template Language!
Component-Driven Templating
Reuse parts of your code in form of components:
- Properties Support
- Named Slot Support
- Scoped Slot Support
Flexible Styling
A Component-Driven approach requires a powerful styling toolset. Xylit's Out of the Box Support:
- Properties Support
- Named Slot Support
- Scoped Slot Support
File-Based Routing
Xylit ships with a file-based routing system. When a Xylit-file is added to the project it's automatically available as a route.
DevServer & Livereload
Xylit comes with e built-in DevServer & supports live reloading.
Agnostic Project Structure
Many generators require a specific project structure. However, Xylit is able to align with your project structure.
Zero JavaSript Builds
Templates are processed during the build time. Xylit does not generate any JavaScript by itself.