Concrete
Concepts

The pipeline

Orienting before your first section, when you want to know where a template sits between a property's facts and a page a buyer reads.

A template does not stand on its own. It sits in the middle of a longer path that starts with a property nobody has described yet and ends with a page a buyer is reading. Almost every constraint the framework puts on your code is a consequence of where along that path the code sits.

What it is

Five stages, always in this order.

Intake. An agent hands the platform a property's raw material — photographs, listing documents, floor plans, a voice memo, a few typed basics — and the platform normalizes all of it into one structured account of that property: its facts. Nothing you author is involved.

Fill. The platform reads your sections' declarations — what content each section has, and where each piece of it comes from — and turns the property's facts into a value for every piece. This is the stage that writes the draft. See AI fill.

Your template. The draft is content in the shape your template declared. Your pages place your sections, and your sections lay that content out.

Edit. A user opens the draft and revises it: rewrites a headline, swaps a photo, hides a section. Their edits replace what fill produced, and the page they look at while they work is your section, re-rendered.

Publish. The finished content is rendered one last time to static files, and those files are what gets served. There is no server application behind a published page.

Where your code runs

StageWhat it consumesDoes your code run?
Intakethe property's raw uploadsNo
Fillyour declarations, and the property's factsNo — your declarations are read; your components are not
Edita user's revisions to the draftYes — your sections, repeatedly, while a user edits
Publishthe finished contentYes — your sections, once

Read the right-hand column twice. The two stages that decide what a page says never run your code at all, and the two that do run it are laying out content that has already been decided.

Why it works this way

One template is rendered many times, once per deliverable — a property's own copy of that template, holding that property's content and that user's edits. So a section declares what content it has and how that content should be produced, and the platform supplies the values per deliverable. That is what makes a template you author once the same code behind every home it ever renders.

It is also why the declaration is a declaration rather than logic inside your component. At the moment you write a section, the property it will render does not exist. You cannot fetch its content, because there is nothing to fetch; you cannot branch on it, because there is nothing to branch on. What you can do is describe the content and say where each piece comes from — and a description is something the platform can read and act on long before your component would be called.

This inverts the habit most React work builds. In an ordinary application the component decides what it needs and goes and gets it. Here the deciding happens in a stage that has already finished by the time your component runs, and the component's whole job is to lay out values that arrive on its bindings.

The cost is worth naming plainly: content a section cannot describe declaratively is content the platform cannot fill for it. The payoff is that one authoring pass covers every property the template will ever meet — including the one with four photographs instead of forty, no floor plan and no headshot. Those are not edge cases to handle later; they are the ordinary case, which is why a workspace previews against a set of fixture properties rather than against one flattering listing.

How it works

Your code runs at exactly two moments

At check time, under a probe. Your pages are components, and the framework evaluates them once to learn the composition: which sections a page holds, in what order, at which instance. concrete check, concrete dev and concrete build all run that probe. It is the reason placing a section is ordinary JSX and nothing about the composition is declared twice.

At render. Once, on the platform's server, when a deliverable is published; and again and again behind the editor while a user edits.

Fill is not one of those moments. Fill reads your declarations and never calls your components. A slot's value is settled by what the slot is and what its source says it comes from — never by anything your markup does with the value afterwards. Your section cannot influence its own inputs, and it is not asked to.

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

// Baked from the property's own account of itself. Fill resolves it; no model runs.
const street = text.short({ source: fact.property.address.street, label: "Street" });

// Generated. Fill hands this brief to a model and the answer lands on the slot.
const headline = text.medium({
  cap: 60,
  label: "Headline",
  source: fill.write({
    reads: [fact.property.address, fact.property.description],
    brief: "A marketing headline for the property. Write one sentence. Confident, no exclamation marks.",
  }),
});

Both lines are read by a stage your component never runs in. By the time your markup sees slot.headline, the argument about where its value came from is over.

Nearly every rule the framework applies to a section follows from that, rather than from house style:

  • A section must be a pure function of its bindings. The two renders have to agree: one is the page a buyer reads, the other is the preview the user edited against, so a disagreement between them is a bug the user finds only after publishing. Same bindings in, same markup out.
  • Nothing may be read that differs between them. A clock or a random number answers differently every time it is asked, and the two renders happen at different moments. A browser global is simpler still: neither render is in a browser, so there is nothing there to read. The rule is server/no-nondeterminism.
  • The markup has to say what it is. The editor never sees your component, only the DOM it produced — so the elements carrying content have to be identifiable in the output. That obligation and its limits are the marker contract.
  • Interactivity is a separate file. A render produces markup, not an application. Anything that needs a browser is its own "use client" module, loaded beside the page. See Server and client.

One render path, two surfaces

The editor preview and the published page are not two implementations of your section that have to be kept in agreement. They are the same render of the same content, reached by the same path, which is what makes the preview trustworthy rather than approximately right.

It also sets which surface is the demanding one. Publishing renders a section once; the editor re-renders it over and over against content that changes under it. A section that holds up there publishes without surprises.

What it is not

Not a CMS. A template stores no property content. It declares the shape of what a page needs, and the property's own content binds to that shape per deliverable. The exception proves the rule: a static asset ships inside the template precisely because it is not property content.

Not a page builder. Composition is code. You list a template's pages in template.ts and place sections in them as JSX, and cross-section behaviour is authored there too. Layout is the markup and CSS you write.

A section is not a React app. It is server-rendered and ships no JavaScript of its own. That is not a limit on what a section may do — interactivity is relocated, not banned — but it does mean a section is markup first, with the interactive parts named and isolated rather than assumed everywhere.

Where next

  • Sections — the one exported value you actually write.
  • Slots — the only thing a section declares as content.
  • Bind a slot to a property fact — the whole path in one recipe: a fact at one end, rendered markup at the other.
  • template.ts — everything the platform reads out of your workspace before a line of your code runs.
  • concrete check — the command that runs the probe and reports what it found.

On this page