aleksip / plugin-data-transform

Data Transform Plugin for Pattern Lab PHP
GNU General Public License v2.0
34 stars 10 forks source link

`Include pattern files` more info #14

Closed romanovma closed 7 years ago

romanovma commented 7 years ago

Hi, could you please provide more info on how to use Include pattern files feature? It doesn't work for me, may be I do something wrong.

Where to store the html pattern file? Is it relative path to it? How to put this parameter into twig? {{ key }}?

Thank you.

aleksip commented 7 years ago

Hi, the include()d files should be Twig pattern files or pseudo-pattern data files. The name of the included file should be in standard Pattern Lab shorthand include syntax, and it can be anywhere in the Pattern Lab directory structure. The included file can be added in the respective Twig file using {{ key }}.

romanovma commented 7 years ago

Thanks a lot!