Skip to content
This repository has been archived by the owner on Feb 7, 2023. It is now read-only.

Cannot use Pattern Parameters #224

Closed
thangkieu opened this issue Jul 25, 2014 · 6 comments
Closed

Cannot use Pattern Parameters #224

thangkieu opened this issue Jul 25, 2014 · 6 comments

Comments

@thangkieu
Copy link

Hi all!
I have an issue with pattern parameters.

  • first: I've defined an property in data.json: "message": "Some-text"
  • create an mustache file: 01-base-button.mustache in atoms folder with content:

    {{ message }}
  • create other mustache file: 01-test-pattern.mustache in molecules folder with content:
    {{> atoms-base-button(message: "Other text") }}
    But when I select test-pattern to show the result, It's not work. Just blank page showed.

What am I wrong? Help me please?
Thanks so much

@bradfrost
Copy link
Member

Hey @kqthang1505,
I'm not exactly sure why you aren't able to see the results. I replicated your steps and was able to view the button:
ember

Are you still having issues with this?

@thangkieu
Copy link
Author

Hi @bradfrost,

I am using grunt to run pattern lab (not PHP server) and I am still having this issues. Maybe it's not working when using grunt to runt pattern lab, right?

:(

@dmolsen
Copy link
Member

dmolsen commented Aug 2, 2014

@kqthang1505 -

Something else is going on. If you can create Gists of the files in question maybe there's something we can see there. Otherwise, based on what you've shared above, this appears to be working just fine in the current edition. I tested it too. Grunt shouldn't be messing with anything.

@hschot
Copy link

hschot commented May 7, 2015

With the 0.9.1 node version of Patternlab, I also still have this issue. @dmolsen have you tried it with Patternlab node? (Not requesting you to go through the trouble of setting it up, just asking if you already have ;-)
Update: it doesn't seem implemented in the node implementation yet. Somewhat cryptic clue: Pattern Parameters #88

@bmuenzenmeyer
Copy link
Member

@hschot @kqthang1505 correct it's not implemented in Pattern Lab Node yet, but I'm working on it now :D

@jackblackCH
Copy link

+1

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

No branches or pull requests

6 participants