{"action":"closed","issue":{"url":"https://api.github.com/repos/canjs/canjs/issues/1770","labels_url":"https://api.github.com/repos/canjs/canjs/issues/1770/labels{/name}","comments_url":"https://api.github.com/repos/canjs/canjs/issues/1770/comments","events_url":"https://api.github.com/repos/canjs/canjs/issues/1770/events","html_url":"https://github.com/canjs/canjs/issues/1770","id":92714463,"number":1770,"title":"Stache conditionals within custom attributes break in 2.3.0-pre.2","user":{"login":"dylanrtt","id":11302736,"avatar_url":"https://avatars.githubusercontent.com/u/11302736?v=3","gravatar_id":"","url":"https://api.github.com/users/dylanrtt","html_url":"https://github.com/dylanrtt","followers_url":"https://api.github.com/users/dylanrtt/followers","following_url":"https://api.github.com/users/dylanrtt/following{/other_user}","gists_url":"https://api.github.com/users/dylanrtt/gists{/gist_id}","starred_url":"https://api.github.com/users/dylanrtt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dylanrtt/subscriptions","organizations_url":"https://api.github.com/users/dylanrtt/orgs","repos_url":"https://api.github.com/users/dylanrtt/repos","events_url":"https://api.github.com/users/dylanrtt/events{/privacy}","received_events_url":"https://api.github.com/users/dylanrtt/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/canjs/canjs/labels/Feature","name":"Feature","color":"02d7e1"},{"url":"https://api.github.com/repos/canjs/canjs/labels/Fixed%20in%20branch","name":"Fixed in branch","color":"009800"}],"state":"closed","locked":false,"assignee":{"login":"justinbmeyer","id":78602,"avatar_url":"https://avatars.githubusercontent.com/u/78602?v=3","gravatar_id":"","url":"https://api.github.com/users/justinbmeyer","html_url":"https://github.com/justinbmeyer","followers_url":"https://api.github.com/users/justinbmeyer/followers","following_url":"https://api.github.com/users/justinbmeyer/following{/other_user}","gists_url":"https://api.github.com/users/justinbmeyer/gists{/gist_id}","starred_url":"https://api.github.com/users/justinbmeyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinbmeyer/subscriptions","organizations_url":"https://api.github.com/users/justinbmeyer/orgs","repos_url":"https://api.github.com/users/justinbmeyer/repos","events_url":"https://api.github.com/users/justinbmeyer/events{/privacy}","received_events_url":"https://api.github.com/users/justinbmeyer/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/canjs/canjs/milestones/35","html_url":"https://github.com/canjs/canjs/milestones/2.3.2","labels_url":"https://api.github.com/repos/canjs/canjs/milestones/35/labels","id":1383713,"number":35,"title":"2.3.2","description":"","creator":{"login":"justinbmeyer","id":78602,"avatar_url":"https://avatars.githubusercontent.com/u/78602?v=3","gravatar_id":"","url":"https://api.github.com/users/justinbmeyer","html_url":"https://github.com/justinbmeyer","followers_url":"https://api.github.com/users/justinbmeyer/followers","following_url":"https://api.github.com/users/justinbmeyer/following{/other_user}","gists_url":"https://api.github.com/users/justinbmeyer/gists{/gist_id}","starred_url":"https://api.github.com/users/justinbmeyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinbmeyer/subscriptions","organizations_url":"https://api.github.com/users/justinbmeyer/orgs","repos_url":"https://api.github.com/users/justinbmeyer/repos","events_url":"https://api.github.com/users/justinbmeyer/events{/privacy}","received_events_url":"https://api.github.com/users/justinbmeyer/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":18,"state":"open","created_at":"2015-10-29T15:48:47Z","updated_at":"2015-11-09T22:36:49Z","due_on":null,"closed_at":null},"comments":10,"created_at":"2015-07-02T19:20:57Z","updated_at":"2015-11-09T22:36:49Z","closed_at":"2015-11-09T22:36:49Z","body":"The following is possible in 2.2.6:\r\n\r\n```html\r\n<input type=\"text\" can-value=\"{{#contact}}contact.{{/contact}}name\">\r\n```\r\n\r\nThis is helpful in situations where the context in which a template is rendered is dynamic. I am aware that can-value doesn't actually listen to changes to the attribute so it's not possible to change the field after the template is rendered, but it does work for making the initial render dynamic.\r\n\r\nHowever, it seems to breaks the parser in 2.3.0-pre.2 (only version I tested since 2.2.6) on [view/stache/text_section.js#L29](https://github.com/bitovi/canjs/blob/v2.3.0-pre.2/view/stache/text_section.js#L29) and/or [view/stache/utils.js:32](https://github.com/bitovi/canjs/blob/v2.3.0-pre.2/view/stache/utils.js#L32). I don't know if there are plans to fix it before release but figured I would bring it up as soon as possible.\r\n\r\nI have a feeling that some of you might say doing it this way is bad. Perhaps. If you guys do want to continue to support it, I can make a jsbin to reproduce the bug. If not, I can fix my code."}}