This Cinnog App is deployed on Netlify: https://cinnog.netlify.app/
Cinnog is a static site generator using Leptos with Bevy ECS as a data layer.
cargo make serve
serves the App with watch mode and hot-reload enabled.cargo make build
builds the project in release. The output will be in thedist
directory and the command will not serve it, but quit instead.cargo make fmt
formats withrustfmt
andleptosfmt
.cargo make e2e
runs the end-to-end tests from theend2end
directory using Playwright.
Bevy ECS is used in an attempt to add a data layer to Leptos as a static site generator. The idea is similar to what Gatsby does with GraphQL using a Bevy ECS World as an in-memory database. The API of Bevy ECS is very nice to work with as a user. It removes any need of an extra syntax for data queries.
Cinnog is quite minimal at the moment and very experimental. In generator
, a new data layer is constructed and filled with example data from markdown and ron
files.
When all data is loaded and processed, Cinnog can build a given Leptos app and will supply the data layer in a context. Inside components, you can run Systems against the data layer (think GraphQL query in Gatsby) and use Resources.
Dual-licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or https://opensource.org/licenses/MIT)
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.