Skip to content

Inline parameter values supplied to partials are not utilized if underlying data model has property with the same name #21

Description

@arteforme

In dustjs, I can supply inline parameter values to partials and it will use the supplied value, but not override the value in the model (if it exists in the model). Below is a code example that demonstrates the issue:

Partial:

Hello {message}

Model:

{ message: 'World' );

Template:

`


{> "../pathToPartial/dustPartial" message="City" /}

`

Expected Output:

Hello City

Actual Output:

Hello World

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions