{"action":"created","issue":{"url":"https://api.github.com/repos/frctl/fractal/issues/213","repository_url":"https://api.github.com/repos/frctl/fractal","labels_url":"https://api.github.com/repos/frctl/fractal/issues/213/labels{/name}","comments_url":"https://api.github.com/repos/frctl/fractal/issues/213/comments","events_url":"https://api.github.com/repos/frctl/fractal/issues/213/events","html_url":"https://github.com/frctl/fractal/issues/213","id":210337813,"number":213,"title":"Using `contextData` handlebars helper","user":{"login":"maban","id":237149,"avatar_url":"https://avatars2.githubusercontent.com/u/237149?v=3","gravatar_id":"","url":"https://api.github.com/users/maban","html_url":"https://github.com/maban","followers_url":"https://api.github.com/users/maban/followers","following_url":"https://api.github.com/users/maban/following{/other_user}","gists_url":"https://api.github.com/users/maban/gists{/gist_id}","starred_url":"https://api.github.com/users/maban/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maban/subscriptions","organizations_url":"https://api.github.com/users/maban/orgs","repos_url":"https://api.github.com/users/maban/repos","events_url":"https://api.github.com/users/maban/events{/privacy}","received_events_url":"https://api.github.com/users/maban/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-02-26T18:36:39Z","updated_at":"2017-03-06T18:25:22Z","closed_at":null,"body":"I'm trying to override the text in a button in one of my view templates. I'd like to do this using `contextData`, [following the documentation](http://fractal.build/guide/core-concepts/views#-contextdata-):\r\n\r\n```\r\n<!--\r\n  The same as above, but passing in some data to override\r\n   some items in the @button-2 data. 'someData' is an\r\n   object, i.e. {text: 'foo'}\r\n-->\r\n{{> '@button-1' (contextData '@button-2' someData) }}\r\n```\r\n\r\nWhen I look at the [example](http://bits.24ways.org/components/detail/field), @paulrobertlloyd has done it like this:\r\n\r\n```\r\n{% render \"@button\", { label: \"Search\", submit: true } %}\r\n```\r\n\r\nHow do I write the same thing in Handlebars? I've been trying for quite a while but keep getting syntax errors. Here's what I've tried (including separating with commas, adding double quotes…) but I'm missing _something_.\r\n\r\n```\r\n{{> '@button-1' (contextData '@button-2' {text: 'foo'} }}\r\n```\r\n\r\nWhat am I doing wrong here?\r\n\r\nReally enjoying using Fractal properly, by the way! :)"},"comment":{"url":"https://api.github.com/repos/frctl/fractal/issues/comments/284485365","html_url":"https://github.com/frctl/fractal/issues/213#issuecomment-284485365","issue_url":"https://api.github.com/repos/frctl/fractal/issues/213","id":284485365,"user":{"login":"maban","id":237149,"avatar_url":"https://avatars2.githubusercontent.com/u/237149?v=3","gravatar_id":"","url":"https://api.github.com/users/maban","html_url":"https://github.com/maban","followers_url":"https://api.github.com/users/maban/followers","following_url":"https://api.github.com/users/maban/following{/other_user}","gists_url":"https://api.github.com/users/maban/gists{/gist_id}","starred_url":"https://api.github.com/users/maban/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maban/subscriptions","organizations_url":"https://api.github.com/users/maban/orgs","repos_url":"https://api.github.com/users/maban/repos","events_url":"https://api.github.com/users/maban/events{/privacy}","received_events_url":"https://api.github.com/users/maban/received_events","type":"User","site_admin":false},"created_at":"2017-03-06T18:25:22Z","updated_at":"2017-03-06T18:25:22Z","body":"@joshjemerson had a look and helped me write this:\r\n\r\n```\r\n{{> @ button label=\"Search\" type=\"Submit\" }}\r\n```\r\n\r\nIt works! I don't know how but it does 👍 "}}
{"actor":{"display_login":"maban"}}