Hey! ๐
Another Static Site Generator (SSG)? Launched in 2025? Yes! For years I've built static sites using Ruby-based SSGs and occasionally tried JavaScript alternatives. But there's always been a frustrating disconnect when switching between building Rails apps and creating static sites. You can't reuse your views, helpers, partials or any of the frontend code you've already built. Countless parts of your Rails workflow simply aren't transferable to static site generators (even Ruby-based ones!).
Perron (Dutch/French; a platform at a railway station from where passengers can board or disembark trains) bridges this gap elegantly. Rather than being a standalone SSG, Perron is packaged as a gem that runs within your Rails app. This approach gives you:
- all the Rails features you know and love: layouts, views, partials, helpers and all the gems you already use in your app
- purpose-built tools for static content: content collections, markdown processing, frontmatter parsing and built-in search
- SEO essentials (meta tags, sitemap.xml) and syndication feeds (RSS/JSON)
- smart features like related content recommendations (using TF-IDF algorithm) and programmatic content (for pSEO)
- flexible data handling through YML, JSON or CSV files
Perron offers two operating modes to fit your needs:
- Standalone: generate a complete static site for deployment to services like Netlify, Render, statichost.eu, etc.
- Integrated: add static pages directly to your existing Rails application
With Perron's convention-over-configuration approach, you can organize content in familiar Rails patterns. Create collections with generators, set up routes naturally and leverage ERB embedding in your markdown when needed.
Perron is already powering multiple sites (this site's repo can be found here). I'd love to see you give Perron a try for your next marketing site, blog or documentation project! ๐
Check it out (and โญ it) on GitHub. โค๏ธ
-Rails Designer