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

Partial with parameters was not getting the correct context #132

Merged
merged 2 commits into from
Sep 7, 2012
Merged

Partial with parameters was not getting the correct context #132

merged 2 commits into from
Sep 7, 2012

Conversation

jimmyhchan
Copy link
Contributor

Too many merge conflicts on the previous branch... let's try again

the logic before for putting the parameter onto the context stack was wrong.

Partials with parameters that had 2 levels of context were missing the last level and manifested itself as partials with parameters was not properly walking up the tree.

This is exacerbated by the @section calls which puts stuff on the stack

@smfoote
Copy link
Contributor

smfoote commented Sep 5, 2012

Looks good to me. Maybe the decap/recap should be extracted so it can be used as a helper function?

@@ -10,7 +10,7 @@
<script src="./dust_files/jsdump.js"></script>
<script src="./dust_files/beautify.js"></script>
<script src="../lib/dust.js"></script>
<script src="../dustjs-helpers/lib/dust-helpers.js"></script>
<script src="../lib/dust-helpers.js"></script>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Slipping this into the Pull request.

jimmyhchan added a commit that referenced this pull request Sep 7, 2012
Partial with parameters was not getting the correct context
@jimmyhchan jimmyhchan merged commit 470b700 into linkedin:master Sep 7, 2012
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

Successfully merging this pull request may close these issues.

2 participants