A tool to help test email templates locally when customising notifications.
Check the templates variables documentation for a full list of the available objects.
ruby email-preview.rb
Then open it up in the Browser at http://localhost:4567/
If you've got a particular order you'd like to work with, you can get easily get this information from a Shopify store in JSON format.
- Visit the Order section and load up the order you want
- In the browser's address bar append
.json
to the URL. - Copy and paste the content to
data/{template_name}.json
rerun 'ruby email-preview.rb'