DEV Community

Discussion on: What is the simplest static site framework?

Collapse
 
andrewbrown profile image
Andrew Brown 🇨🇦 • Edited

Just write your own in plain ruby with no framework.
Ruby standard has erb integrated.

I wrote one for my other startup because I wanted to just use lambda to generate out the static files instead of having to use CodeBuild.

It generates out 100,000+ of html files within a few minutes, and I just wrote a bit of logic to diff for new files.

Collapse
 
ben profile image
Ben Halpern

Do you do markdown parsing as part of this process?

Collapse
 
andrewbrown profile image
Andrew Brown 🇨🇦

Nope, I only use what is provided in the standard ruby library. Its nice when you don't have a gem file since it makes bundling much easer for Lambda functions.

I could certainly include RedCarpet. I believe it relies on some native extensions but I could just create a Lambda Layer if that is the case.

I have lambda functions that run queries against my RDS database and that then download data into a json file.

That json file is then read and used to generate out static files. I just pass the data to erb files.