drupal-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
2 stars 1 forks source link

Bug: Builder.php Can't Correctly Find Template File for Psuedo-Patterns #22

Open sghoweri opened 6 years ago

sghoweri commented 6 years ago

Ex. say you have a button.twig file with the JSON data for that button.twig file living in a separate sibling folder (let's say you want to organize examples and variations of using a particular component separately).

Even though button.json is in a separate folder than button.twig, Pattern Lab still correctly picks this up and compiles everything correctly without throwing any errors.

The problem pops up when dealing with psuedo pattern variations (ex. button~large.json) which Pattern Lab currently fails to grab the correct template path for (the template path to the original button.twig file).

builder_php_ _bolt 1__gulp__open_

Good news: I've got a working fix for this that I'll be putting in shortly!