neutron-adt
Version:
Neutron Atomic Design Tool
18 lines (11 loc) • 620 B
Markdown
Neutron supports multiple layouts. You just need to add a layout property in your json file related to the partial and it will render in your template file.
When you want to print something from your pattern in your layout, you can do it using the `contentFor` helper. After that, just add the helper `outputFor` in your layout.
*Pattern file:*
> {{contentFor "ruleName"}}
> ... content or markup goes here
> {{/contentFor}}
*Layout file:*
> {{outputFor "ruleName"}}