Content Factory

ndimc — Template Gallery

Each card below is a digital recreation of a sample artefact from /samples. Templates live in lib/templates, entries in lib/content/entries, and a single registry.ts drives both this gallery and the dynamic route /templates/[slug]. Adding a recipe = one entry file + one line in the registry.

11 templates · 7 × recipe · classic · 1 × infographic · landscape · 1 × infographic · process · 2 × recipe · bite

How the factory scales

  • A template is a pure React component + a typed data shape. One template renders any number of entries.
  • An entry is a data object that declares a kind (which template) and the content to render.
  • The registry is the single source of truth. The gallery and the dynamic route both derive from it, so generating 100 recipes is 100 entries — no layout duplication.
  • Future: entries can be loaded from JSON / a CMS / a database with zero change to templates.