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

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.

Last updated