1

I am using the Node version of pattern lab and have a pattern mustache file that contains the following code:

<a href="#" class="{{ styleModifier }}">{{ linkCopy }}</a>

I call this pattern partial in a mustache file like the code below:

{{> name-of-pattern-partial:css-class(linkCopy: 'Link Text') }}

The pattern partial renders the following code in the .mustache pattern:

<a href="#" class="css-class">Link Text</a>

In the pseudo pattern however the code is being rendered as follows:

<a href="#" class=""></a>

Is there a limitation in Pattern Lab, Mustache or Pattern Lab Node that does not allow the use of pattern parameters and style modifiers in rendered pseudo patterns?

Alex Wood
  • 13
  • 3

1 Answers1

1

I believe this was identified as a bug in the node project, here: https://github.com/pattern-lab/patternlab-node/issues/250

allicarn
  • 2,859
  • 2
  • 28
  • 47
  • This is absolutely what I was looking for. I will keep an eye on the status of this issue on the github page. Thanks a bunch @allicarn ! – Alex Wood Mar 01 '16 at 22:13
  • It appears that the patternlab community here on stack overflow is not super active, however their github is thriving! I'm finding out for myself that it may be better to toss questions and issues in that direction. – allicarn Mar 01 '16 at 23:31