Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
stache issue with steal and single quotes #950
Something is wrong with the escaping mechanism for stache with steal.
I added a breaking test (not really a test but a demo page that shows the bug) in the stache-steal branch. To see the issue, check out this branch and run can/view/stache/test/test_steal.html
The issue appears to be that any single quotes in the template get escaped wrong and show up as undefined.
If the template is:
The same works fine in Mustache and works fine if you run can.view.stache("'hi'")()