About This Blog
This is a demo of Ruby2JS with Astro. It shows how Ruby can be used
at every level of an Astro project:
- Static content (this page) - Plain markdown, no Ruby required
- Astro pages - Ruby code in
.astro.rb files, rendered at build time
- Interactive islands - Preact components in
.jsx.rb files, hydrated on client
How It Works
- Posts are stored in IndexedDB using Dexie.js
- The PostList island displays posts from the database
- The PostForm island creates new posts
- All Ruby code transpiles to JavaScript via Ruby2JS
Built with Ruby2JS.