You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 10, 2019. It is now read-only.
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.