I am using Pattern Lab Node `v1.0.0` on `Mac`, using the `gulp` configuration. ##### Expected Behavior {{> some-partial-with-more-than-one-space-in-the-reference } ##### Actual Behavior Partial is not found, and therefore in the node version of patternlab, the template errors. ##### Steps to Reproduce See L103 in engine_mustache.js var foundPatternPartial = partialString.replace("{{> ", "").replace(" }}", "").replace("{{>", "").replace("}}", ""); It assumes there is only one space before the ending curly brackets. Suggestion: Should use regex to remove to curly and angle brackets.
I am using Pattern Lab Node
v1.0.0onMac, using thegulpconfiguration.Expected Behavior
{{> some-partial-with-more-than-one-space-in-the-reference }
Actual Behavior
Partial is not found, and therefore in the node version of patternlab, the template errors.
Steps to Reproduce
See
L103 in engine_mustache.js
var foundPatternPartial = partialString.replace("{{> ", "").replace(" }}", "").replace("{{>", "").replace("}}", "");
It assumes there is only one space before the ending curly brackets.
Suggestion: Should use regex to remove to curly and angle brackets.