ultrasaurus / webgenr

experimental
Apache License 2.0
1 stars 1 forks source link

Simple Static Site Generator (written in Rust)

work-in-progress, experimental

demo: https://ultrasaurus.github.io/webgenr/

Install & Run locally

clone this repo, then from within the repo's top-level directory:

cargo install --path .
cd ~ && mkdir test && cd test

webgenr

Directories will be created, as needed.

Templates

All files ending in .hbs in templates directory will use their relative name as template name. For example, the file templates/some/path/file.hbs will be registered as some/path/file.

Hidden files and tempfile (starts with #) will be ignored.

https://docs.rs/handlebars/latest/handlebars/struct.Handlebars.html#method.register_templates_directory

Development

see command-line options:

RUST_LOG=info cargo run -- --help

see examples folder for more usage examples

TBD

Eventually will move to github issues, just keeping roadmap-y things here until there are multiple maintainers or additional users.

Misc TODO

TODO - tech debt