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

Mustache dev logging #919

Closed
wants to merge 3 commits into from
Closed

Conversation

ekryski
Copy link
Contributor

@ekryski ekryski commented Apr 29, 2014

Added some better dev logging for mustache templates. I'm not sure of some of the intricacies of how it resolves when deeply nested, so I'm not sure if I'm missing any cases here but this should close #720 and #726.

@justinbmeyer
Copy link
Contributor

Thanks! For this to close those issues, we will need similar warnings in can.stache. If you are interested, the similar place this happens in stache is here: https://github.com/bitovi/canjs/blob/minor/view/stache/mustache_core.js#L215

@justinbmeyer
Copy link
Contributor

I think "in mustache template" in:

Variable "' + key + '" not found in mustache template.'

is imprecise. Perhaps "Unable to find key value \""+key+"\"." to parallel the other warning.

@justinbmeyer justinbmeyer added this to the 2.1.0 milestone Apr 30, 2014
@ekryski
Copy link
Contributor Author

ekryski commented Apr 30, 2014

Yep you are right. I'll update that.

@ekryski ekryski mentioned this pull request Apr 30, 2014
@ekryski
Copy link
Contributor Author

ekryski commented Apr 30, 2014

Closing this as it should be going to master. New PR is #927.

@ekryski ekryski closed this Apr 30, 2014
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.

Dev warning when mustache doesn't find a variable
2 participants