Concrete
Start

What you're building

Your first ten minutes, before you install anything — what a template is, who supplies its content, and what that makes your code.

No commands on this page. It is the one piece of orientation the rest of the track assumes, and almost every constraint you will meet later is a consequence of it.

Goal

Be able to say, in your own words, what a template is, who writes the words and chooses the photographs on a page it renders, and why your component is a pure function of what it is handed.

Steps

You author a template, not a page

A template is a set of sections laid out across the pages of one site. You write it once and the platform renders it for every property that ever uses it, so the thing you are authoring is a shape rather than a page: what content a section has, where each piece of it comes from, and how it is laid out once it arrives.

A section is one exported value. It carries both halves in one place — the declaration of its content, and the markup that lays that content out:

import { fact, fill, Section, section, Slot, text } from "@homepages/concrete";

export const Hero = section(
  {
    key: "hero",
    label: "Hero",
    slots: {
      headline: text.medium({
        label: "Headline",
        cap: 80,
        source: fill.write({
          reads: [fact.property.address, fact.property.description],
          brief: "Name what makes the property worth seeing, in one short, confident sentence.",
        }),
      }),
    },
  },
  ({ slot }) => (
    <Section>
      <Slot.Text slot={slot.headline} as="h1" />
    </Section>
  ),
);

Notice what is not in there: the headline itself. You said a headline exists, what it is for and how long it may be. You did not write one, because at the moment you author a section the property it will render does not exist yet.

The platform fills it from the property's facts

Somebody — an estate agent, usually — hands HomePages a property's raw material: photographs, a listing document, floor plans, a voice memo, a few typed basics. The platform normalizes all of it into one structured account of that property, its facts.

Then it reads your declarations and produces a value for every piece of content your sections declared: model-written prose where you asked for prose, an assigned photograph where you asked for a photograph, the property's own data where you bound a fact. That stage is AI fill, and your components are not called in it — only the declarations beside them are read.

A user edits it, and then publishes

The filled draft opens in a content-only editor. A user rewrites a headline, swaps a photograph, hides a section — content, never layout, because the layout is yours. What they are looking at while they work is your section, re-rendered on every change.

When they publish, the content is rendered one last time to static files, and those files are what a buyer loads. There is no server application behind a published page.

So your code runs at two moments, and never decides anything

Read the sequence from your component's point of view. It runs on the platform's servers, never on your machine. It runs over content you have never seen, belonging to properties that did not exist when you wrote it. And it runs at a time you are not there — months later, with nobody to ask what you meant.

StageDoes your code run?
Intake — the property's uploads become factsNo
Fill — your declarations become valuesNo; the declarations are read, the components are not
Edit — a user revises the draftYes, repeatedly, while they work
Publish — the final render to static filesYes, once

The two stages that decide what a page says never run your code. The two that run it are laying out content already decided. So a section gets its bindings and returns markup: no fetching, no clock, no random number, no browser global, no state read at the moment of render. Same bindings in, same markup out.

That is not house style. The published page and the editor preview are two renders of the same content at different times on different machines, and anything that answers differently between them is a bug a user finds only after publishing. Purity is what makes the preview trustworthy rather than approximately right — and interactivity is relocated, not banned.

What you learned

  • Where your code sits. Between fill and publish, at the two moments above — the pipeline is the same story stage by stage.
  • What a section is. One exported value carrying a declaration and markup — sections.
  • What it declares. Slots: a piece of content, its type, and where its value comes from.
  • Who supplies a value. Either the property, through facts and provenance, or a model, through AI fill.
  • Why the renderer is pure. Two renders of one content have to agree — server and client is where anything that cannot be pure goes instead.

Next

Install — create the workspace and meet the files this page has been describing.

On this page