Blockable
By Sam Scherf
Written January 01, 2022
Blockable is a custom static site generator I wrote in python! There's a lot of simple websites on the internet that have no use for a database and rarely ever change. For sites like this, non-static sites make things unnecessarily complex and make things a lot less secure. So I set out to find a static site generator that used a programming language I was familiar with and allowed me to make functions I could easily call with different data inputs (like a function to generate a gallery of images for example). Unfortunately, I couldn't find exactly what I was looking for so I decided to create my own!
What makes blockable unique?
Blockable is a very simple program that essentially just gives developers a framework to write python functions which take json data as input and return HTML. How they generate this HTML is up to the developer (I personally really like Dominate) while the json data can be written manually or using Netlify (I have plans to replace this with a built-in CMS sometime in the future). The core feature of blockable is that developers can write “blocks” which take some developer-defined input and return HTML. Then developers can use these blocks when creating the layout of their pages. This makes it very easy to make multiple sites without having to rewrite tons and tons of code. Ahis site, and almost every other site hosted by Ampolic, was built and compiled using blockable! To see more about how to use blockable and its future plans, check out