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

#each doesn't loop through keys with . in them correctly #14

Open
justinbmeyer opened this issue Apr 4, 2022 · 0 comments · May be fixed by #15
Open

#each doesn't loop through keys with . in them correctly #14

justinbmeyer opened this issue Apr 4, 2022 · 0 comments · May be fixed by #15
Assignees

Comments

@justinbmeyer
Copy link
Contributor

x = new can.Map({ "foo.bar": "baz" });
y = can.stache(`{{#each this}}{{%key}} {{this}}<br>{{/each}}`)
$('<div>').append(y(x)).html(); 
// '\x3C!--Observation<{{#each this}}>-->foo.bar <br>\x3C!--/Observation<{{#each this}}>-->'

The value of "baz" won't be printed

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 a pull request may close this issue.

1 participant