pattern-lab / patternlab-php-core

This repository provides the core functionality for Pattern Lab. It is meant to be used from within an Edition with a PatternEngine and StarterKit.
http://patternlab.io/
MIT License
43 stars 62 forks source link

bringing back state via lineage #142

Closed EvanLovely closed 6 years ago

EvanLovely commented 6 years ago

This reverts https://github.com/pattern-lab/patternlab-php-core/pull/139 and allows state to be assigned to patterns that have state in their lineages. I realized that the original bugs were from state assigned to all items that use includes... which is from lineage being broken then, which is fixed now: though will require a new RegEx in their config:

lineageMatch: >-
  {%([ ]+)?(?:include|extends|embed)(
  |\()["\']([\/.@A-Za-z0-9-_]+)["\']([\s\S+]*?)%}