Skip to content

patternPartial variable could be accessible in mustache templates #89

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
vebersol opened this issue Aug 10, 2016 · 3 comments
Open

patternPartial variable could be accessible in mustache templates #89

vebersol opened this issue Aug 10, 2016 · 3 comments
Assignees

Comments

@vebersol
Copy link

vebersol commented Aug 10, 2016

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 added a commit to vebersol/patternlab-php-core that referenced this issue Aug 10, 2016
@dmolsen
Copy link
Member

dmolsen commented Aug 10, 2016

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

@dmolsen dmolsen self-assigned this Aug 10, 2016
notacouch added a commit to notacouch/patternlab-php-core that referenced this issue Aug 22, 2017
@sghoweri
Copy link
Contributor

sghoweri commented Nov 5, 2017

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!

@bmuenzenmeyer
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants