One Brand Across Every App: Layouts and Partials

Open the four most recent transactional emails your products sent — one per app — and put them side by side. Ledgerly's footer says "Unsubscribe from these emails". Nightjar's says "Manage your notification preferences" and links to a settings page renamed last year. Pixelforge has no unsubscribe line at all, because you built that one in a hurry. And the button blue is #2563eb in two of them, #1d4ed8 in the third, and in the fourth it is whatever the CSS you pasted from a tutorial happened to contain.
None of this is a bug. Every one of those emails does its job. Collectively, though, they say something you did not intend: that these are four unrelated hobby projects rather than four products from the same shop. If part of your pitch is the same person maintains all of these and holds them to a standard, the mail argues the opposite four times a day.
The drift is structural, not careless. Each app got its email set up the day it launched, by copy-pasting the last app's markup and editing whatever was obviously wrong. From that moment the copies diverge, because every fix lands in exactly one of them. Nobody decided to have four unsubscribe wordings; the fourth is what happened when you fixed the third and never went back.
Fixing it needs a model with three parts and then one account-level move. That is the post: what a layout, a partial and a template each are, how sharing them across apps changes the arithmetic, the failure that looks exactly like nothing happening, and where this is more machinery than a single-app developer should want.
Shell, fragment, message
Handlebars gives you three kinds of file — and knowing which is which is most of the learning curve.
- A layout is the shell. The branded wrapper every email shares: the header with your logo, the container width, the
<style>block, the footer and the legal line. It injects the message into itself with{{{content}}}. Usually one per brand. - A partial is a reusable fragment. A call-to-action button, an address block, a "questions? just reply to this email" line. Any template or layout pulls one in with
{{> footer}}. Partials are for pieces that appear in several messages but not all. - A template is the message. The welcome mail, the receipt, the password reset. It contains only what makes that email that email — and it names the layout it wants to be dressed in.
Concretely, a template is a plain .hbs file that can carry its own metadata in comments, so the whole thing lives in your repo:
{{!-- subject: Welcome to {{companyName}} --}}
{{!-- layout: branded --}}
<h1>Hello {{name}}</h1>
<p>Your first project is ready.</p>
{{> footer}}
Both comments are read at import time. The subject becomes the template's subject line, and the layout key is resolved and linked to the template, which is what makes it apply on every send. Notice how little is in that file. No logo, no colours, no unsubscribe line. That is the point — each of those lives in exactly one place, and if that place is right then this file cannot be wrong about them.
The consequence for consistency is immediate even inside one app. Nine templates that each carry their own footer means nine footers to fix. Nine templates that reference one layout means one.
One footer, four apps
Now the multi-app move. A layout is per-project, so four apps means four layouts — better than thirty-six footers, but you are still doing the same edit four times, which means you will do it three times and forget Cadence.
The fix is scope. Templates, layouts and partials can live at the account level instead of inside a project, shared across every app and referenced with an @account/ prefix. Import the house layout once and the receipt from Ledgerly and the receipt from Nightjar wear an identical shell — same width, same blue, same legal line, same unsubscribe wording. When the wording changes, you change it once and every app is correct on the next send.
Two details make this practical. Account-scoped files are environment-less: no separate sandbox copy to keep in step, which removes a whole class of "why does it look right in sandbox" confusion. And layout resolution falls back — a bare layout key resolves to the project's own layout first, then to an account layout with the same key. So an app that needs its own shell imports a project layout under the shared key and it wins locally, with no special-casing anywhere.
That is the arrangement worth aiming at: one shared shell and a couple of shared partials for the things that must never differ, project templates for the messages actually about that product, and a project layout only where a product deliberately looks different.
The failure that looks like nothing happened
Here is the one thing that will bite you, and it is worth knowing before it does. A missing layout never fails the import.
A layout has to exist before a template can point at it — the link resolves at import time, by key, against the layouts in that project and environment. Import the template first and there is nothing to link to. The import does not error. It succeeds, records a warning, and saves a template with no layout, which then sends perfectly happily as bare unstyled HTML.
{
"key": "welcome",
"type": "template",
"layoutKey": "branded",
"layoutId": null,
"layoutLinked": false,
"warnings": ["Layout \"branded\" does not exist in this project"]
}
So the check is layoutLinked on the import response. True means the shell is attached. False means your email is going out naked, and the only symptom is that it looks slightly wrong in a way nobody bothers to report. When branded mail arrives unbranded, look there first.
The environment split usually causes it. Project templates and layouts exist separately per environment, so a layout imported with a sandbox key is not in live, and the live import of the same template quietly finds nothing. Import order is the other cause: layout first, then the templates that reference it — easy to get right in a deploy script, easy to get wrong by hand.
One more sharp edge, since it follows directly from the sharing story: a project template cannot link to a shared layout. The link is by id and project layouts are per-project, so {{!-- layout: @account/house-style --}} on a project template gets you a warning and no link. Either import that layout into the project too, or move the template up to the account scope where shared layouts resolve. Pick one deliberately, because the failure mode is the silent unstyled one above.
Where this stops being worth it
Be honest about the threshold. One app with six templates does not have this problem — put the shell in a project layout, reference it from every template, and you have captured essentially all of the benefit. Shared account-level templates are a Growth-plan feature in Helmdesk, and there is no reason to reach for a plan tier to solve what one project layout already solves.
It changes at two apps meant to look related, and it is obvious at three. The tell is not aesthetic, it is operational: the first time you fix a footer and have to remember which other repos need the same edit, you have crossed the line. That edit will not be a redesign. It will be a support address, an unsubscribe line, or a legal footer someone told you has to say something specific — small, boring, and required to be identical everywhere.
Consistency is not a design achievement. It is the number of places a fact is written down, and the target is one.
One shell, every app, one place to fix the footer
Handlebars layouts, partials and templates on your own SMTP — shared across every project you run, previewed before they ship.