Reference: email layout

A reference guide to help you work with email layouts in Knock.

This is a reference guide of special Knock variables, and generated CSS styles that are used in email layouts.

Special Knock variables

There are a few special variables used in email layouts to populate and assemble the final email notification template.

VariableDescription
contentA notification template defined in an email channel step will be inserted into this variable. This is a required variable, and must be present somewhere in every layout.
footer_linksA list of footer links, as configured in the layout editor, will be injected into this variable.

Generated CSS styles

When you use the visual template editor to build your email notification template, we auto-generate and include the following CSS styles in the email layout. They provide base styles for certain components, which you can override or extend them as needed.