A static site generator built with Ruby.
How to use:
- 🌀 Clone the repo at
https://github.com/twhite96/static-gen-ruby.gitor with GitHub CLI
gh repo clone twhite96/static-gen-ruby
- 🏃 Run:
bundleto install dependencies.
- 🎊 Have fun with it.
I wanted to show that I could build something, even if it was small, on my own, with little guidance.
Ben Halpern started a thread about his generator on DEV and I took his scaffold and ran with it.
Just getting the script running is a win for me, as I am not a Ruby dev at all.
I figured out it was just generating strings in the files I passed to the
There were others, and I plan on writing a full blog post.
Not much. I wanted it to be a full on blog generator but will need to sit on that for a bit.
Maybe DRYing it up a bit, but I like what I have, especially for a v1.
You can read it here: Building a Static Site Generator with Ruby.
- Finish reading Mustache docs
- Figure out if you want to publish a gem
- Figure out if you want to let the user create posts as YAML using this example: mustache/projects.mustache at 9fefaabd2b1e68ef8186a210af1f0e18ef48bb55 · mustache/mustache · GitHub and mustache/projects.yml at 9fefaabd2b1e68ef8186a210af1f0e18ef48bb55 · mustache/mustache · GitHub
- Learn more about publishing gems
- Learn more about bundler
- Write tests and mocks to see if the class renders the Mustache html template
- Decide if more classes and templates are necessary
Further progress on the project on my blog.