Skip to content

Pattern-parameters being deleted after first call #1110

@EmKaCe

Description

@EmKaCe

Hello, I am currently noticing an issue with patternlab-node v5.4.2 on Windows 10 using the vanilla edition with mustache.

Pattern parameters are not working as they are supposed to. The included pattern seems to "fire and forget" about the variable that has been passed and doesn't identify Strings as set parameters.

My use-case

testmolecule.mustache

{{> atoms-testatom(foo: "bar")}}
{{> atoms-testatom(foo: true)}}

testatom.mustache

{{#foo}}
    <p>Set to: {{foo}}</p>
{{/foo}}
{{^foo}}
    <p>Not set!</p>
{{/foo}}
Expected Behavior
<p>Set to: bar</p>
<p>Set to:</p>
Actual Behavior
<p>Not set!</p>
<p>Set to: </p>
<p>Not set!</p>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions