aleksip / plugin-data-transform

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

Shorthand partials syntax #4

Closed hctom closed 8 years ago

hctom commented 8 years ago

I just wondered if the shorthand partials syntax for include() only works in the format TYPE-TPLNAMEWITHOUTEXT?

We are running into problems with this, because we have templates saved like this (to keep the patternlab menu links as short as possible):

As you can see, shorthand syntax atoms-default would target two different templates. So is this by design (I know templates should normally have the component name as filename), or is there any possibility to target an exact component, even if there is another one with the same template name?

Thanx in advance

aleksip commented 8 years ago

The include() function basically just uses Pattern Lab Core, please open an issue there.

hctom commented 8 years ago

For anybody interested, here is the follow up at Pattern Lab Core: https://github.com/pattern-lab/patternlab-php-core/issues/55