patternlab-php-core icon indicating copy to clipboard operation
patternlab-php-core copied to clipboard

patternPartial variable could be accessible in mustache templates

Open vebersol opened this issue 9 years ago • 3 comments

In Patternlab 1 it was possible to do that:

Opening http://localhost:8080/?p=atoms-colors

Example of source/_meta/_00-head.mustache

<body class="{% patternPartial %}">

The expected output is something like:

<body class="atoms-colors">

I've been trying to use the provided data, but I couldn't find anything related in documentation nor in issues somewhere.

vebersol avatar Aug 10 '16 18:08 vebersol

Thanks. I'll get this merged tomorrow evening and a new release pushed out.

dmolsen avatar Aug 10 '16 20:08 dmolsen

Out of curiosity @EvanLovely or @bmuenzenmeyer is this part of the Pattern Lab spec?

If so, could one of you guys point me at where I should be referencing for these sorts of things? Thanks!

sghoweri avatar Nov 05 '17 18:11 sghoweri

I was not aware of this being exposed, available data, though it's an interesting idea,

bmuenzenmeyer avatar Nov 06 '17 04:11 bmuenzenmeyer