| Crates.io | pichu |
| lib.rs | pichu |
| version | 0.4.1 |
| created_at | 2025-06-02 17:01:20.672274+00 |
| updated_at | 2025-06-08 17:40:07.037294+00 |
| description | The static site generator designed to evolve with your needs. |
| homepage | |
| repository | https://github.com/bahlo/pichu |
| max_upload_size | |
| id | 1698141 |
| size | 86,197 |
The static site generator designed to evolve with your needs.
Pichu provides the building blocks to build your own static site generator. Parse a directory of Markdown files, including typed frontmatter, and render them individuall and in a collection using your favorite template engine.
Batteries included, but easily swappable: If you've outgrown the default Markdown implementation, you're encouraged to copy-paste the implementation and plug it in instead. Or bring your own!
pichu::glob("content/blog/*.md")?
.parse_markdown::<Blogpost>()?
.render_each(render_blog_post, |post| format!("dist/blog/{}/index.html", post.basename))?
.render_all(render_blog, "dist/blog/index.html")?;
pichu::render_sass("assets/main.scss", "dist/main.css")?;
pichu::copy_dir("static/", "dist/")?;
markdown (default): Enable the parse_markdown method.sass (default): Enable the render_sass function.Licensed under either of
at your option.