Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
arteforme opened this issue Jun 3, 2015 · 0 comments

Comments

@arteforme
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant