# Create layouts & pages

Layouts and pages are a central feature of Mailhub. They help you avoid dealing with complex templates when sending emails. You can create and edit your templates here.

## Layout

Layouts are used as parent components for a page. They can serve as a 'template' for email designs. This is especially useful if you have multiple designs based on user type, platforms, or other criteria.

### Include page content within layout

To determine where the layout content will be displayed, you can use the `<content />` tag.

[See example here](/editor/insert-page-into-a-layout.md)

## Pages

Pages, on the other hand, are used as email templates. They function in the same way as layouts and are designed to be sent via HTTP requests.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://documentation.mailhub.sh/create-layouts-and-pages.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
