Server-side renderer and Handlebars template bundle for fifthbell pages.
- Renders canonical content documents into HTML
- Supports
article-page,homepage,category-page,live-story, and404layouts - Ships reusable Handlebars templates, partial dependency metadata, and compiled CSS
npm install @fifthbell/brokawimport { render } from '@fifthbell/brokaw';
const html = render(doc);doc must match the canonical schema used by the renderer (see src/types/canonical-article.ts).
@fifthbell/brokaw-> renderer entrypoint@fifthbell/brokaw/partial-deps.json-> partial-to-layout dependency map
npm install
npm run typecheck
npm run test:unit
npm run build
npm run storybook- CI validates typecheck, unit tests, and package build on pull requests and
mainpushes. - Package publish is triggered by pushing a
v*tag.