Skip to content
Choose a tag to compare

🖼 Template preview command

@derekrushforth derekrushforth released this
· 76 commits to master since this release
Choose a tag to compare

CLI template preview

We've added a new command that spins up a local web server so that you can easily preview your compiled templates.

  • Standard templates are compiled with their layout
  • Mustachio syntax rendering
  • HTML and text version previews
  • Small and large screen previews
  • Hot reloading - Your browser will automatically reload each time you change your template

Getting started

After pulling your templates, pass the templates folder to the templates preview command:

postmark templates preview ~/templates-folder

You will also need to authenticate using your server token so that API requests can be made to Postmark's template validation endpoint. A development server will be available at https://localhost:3005. By default, the server will start on port 3005. You can specify your own port using the --port argument.


Preview list

🖥📱Toggle between large and small screen sizes


🔥Hot reloading