Skip to content

Template layouts support

Compare
Choose a tag to compare
@derekrushforth derekrushforth released this 27 Jun 16:47
0e81a68

We've added layout support to the templates pull and templates push commands.

templates pull

Running the pull command now adds layouts to the _layouts folder in the project root. Here's an example of the folder structure:

pm-templates
├── _layouts
│   └── plain
│       ├── content.html
│       ├── content.txt
│       └── meta.json
└── password-reset
│   ├── content.html
│   ├── content.txt
│   └── meta.json
└── welcome
    ├── content.html
    └── meta.json

The meta.json format for templates and layouts also differ a bit. Be sure to check out the wiki for more details.

templates push

Pushing now displays which layouts are being pushed, as well as which layout is being used on a standard template:
push-confirm