---
title: Profile layout
project: OpenMail
version: 1.0
section: guides
language: en
license: MIT
url: https://totaljs.es/docs/openmail/1-0/guides/layout/
updated: 2026-11-19T07:58:05.300Z
---

# Profile layout

> The HTML frame that wraps every email of a profile.

Every profile has a **layout**: the HTML around the content of its templates, for example your logo at the top and a footer at the bottom. All templates of the profile use it.

## Edit the layout

**1.** Open **Profiles**, click the cog on the profile card and choose **Update template**.

**2.** Edit the HTML on the left. The preview on the right updates as you type.

**3.** Click **SUBMIT**.

![The layout editor with the HTML on the left and the preview on the right](/files/JapWJY1os61f.webp)

## Where the template goes

The layout must contain this line where the template content goes:

```html
{{ value | raw }}
```

`raw` inserts the HTML of the template as it is. If you leave this line out, the emails contain only the layout.

## Helpers for all templates

A `<script>` block at the end of the layout can define helpers, small functions that format values. The default layout defines `amount`:

```html
<script>

	// Custom helpers

	Thelpers.amount = function(val) {
		return val.format(2) + ' &euro;';
	};

</script>
```

Every template of the profile can use them, for example `{{ value.total | amount }}` prints `120.00 €`. See [Template markup](../template-markup/).

## Good to know

Email programs support only part of HTML and CSS. Tables and inline `style` attributes, as in the default layout, give the most reliable result.
