Pagesmith + Handlebars
This example demonstrates how to build a static site using @pagesmith/site as the app-facing package for the content layer, Vite/SSG/runtime layer, and Handlebars templates — no framework, no bundler for HTML, just a Node.js build script.
It showcases:
- Content collections with schema validation via Zod
- The
createContentLayerAPI for loading and querying content - Handlebars templates with partials and inline blocks for layout composition
- Custom Handlebars helpers for date formatting and equality checks
- Inline CSS from @pagesmith/site’s pre-built content styles
- A simple Node.js build script that generates static HTML files
Like the EJS example, this is a zero-framework integration — ideal when you prefer Handlebars’ logic-less template philosophy over embedded JavaScript.