DEV Community

Discussion on: What was your win this week?

Collapse
 
tiffany profile image
tiff

Finished the static site generator I was stuck on building.

GitHub logo twhite96 / static-gen-ruby

A static site generator scaffold built with Ruby

Static Gen

A static site generator built with Ruby.

How to use:

  1. 🌀 Clone the repo at https://github.com/twhite96/static-gen-ruby.git or with GitHub CLI gh repo clone twhite96/static-gen-ruby
  2. 🏃 Run: bundle to install dependencies.
  3. 🎊 Have fun with it.

Motivation for this app

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.

🥞 Stack

Ruby and ruby-handlebars

👊🏽 Wins

Just getting the script running is a win for me, as I am not a Ruby dev at all.

😐 Difficulties

Ruby is a whole other animal compared to JavaScript and React. No semicolons, defining different methods (Ruby is class based, so there are more methods than functions in this instance), etc. I spent a whole month stuck on what this method did:

Enter fullscreen mode Exit fullscreen mode