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

Refactoring templateContext #115

Merged
merged 5 commits into from
Nov 6, 2017
Merged

Conversation

phillipskevin
Copy link
Contributor

@phillipskevin phillipskevin commented Nov 3, 2017

In order to make canjs/can-stache#359 work, we need to be able to read some properties on scope differently than others (index, key, etc).

This PR makes it so that reading scope actually give the scope, scope.vars reads from scope.vars, and other scope. properties read directly off of scope.

It also makes it so that there are now "special" contexts ({ special: true }) and index and key are read only from those special contexts.

cc @imaustink

@phillipskevin phillipskevin force-pushed the refactor-template-context branch from 3a11de6 to cb4074f Compare November 3, 2017 22:58
@phillipskevin phillipskevin force-pushed the refactor-template-context branch from 7513c24 to 46af7ea Compare November 6, 2017 20:32
@phillipskevin phillipskevin changed the title WIP: refactoring templateContext Refactoring templateContext Nov 6, 2017
@phillipskevin phillipskevin merged commit b3c63c5 into master Nov 6, 2017
@phillipskevin phillipskevin deleted the refactor-template-context branch November 6, 2017 21:46
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.

1 participant