Testing & debugging templates
Learn how to test and debug your message templates.
Previewing templates
#The preview pane in the template editor will show you an approximation of how your template will render, using the properties that you've set within the state pane as inputs.
If you need to adjust the properties that are used in the preview, or see what the template will look like for a different recipient or tenant, editing the data in the state pane will automatically cause the preview to update.
Sending test messages
#You can send a test message by clicking the "Run a test" button in the top right of the template editor. From here, you can select a recipient and provide any of the data that you'd like to pass to the template.
Debugging template errors
#If Knock cannot render your template, you'll see an error message in the preview pane. Most commonly, you'll see this error when you've got invalid liquid syntax in your template that's preventing the template from being rendered.