{"issue":{"pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"state":"closed","user":{"avatar_url":"https://secure.gravatar.com/avatar/d702bb9bd075a9cef4cb98220f51031a?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"d702bb9bd075a9cef4cb98220f51031a","url":"https://api.github.com/users/bryanp","login":"bryanp","id":18920},"milestone":{"state":"open","open_issues":4,"url":"https://api.github.com/repos/metabahn/pakyow/milestones/3","due_on":"2011-10-31T07:00:00Z","creator":{"avatar_url":"https://secure.gravatar.com/avatar/d702bb9bd075a9cef4cb98220f51031a?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"d702bb9bd075a9cef4cb98220f51031a","url":"https://api.github.com/users/bryanp","login":"bryanp","id":18920},"description":"","title":"0.7","number":3,"closed_issues":4,"created_at":"2011-09-09T20:57:42Z"},"assignee":{"avatar_url":"https://secure.gravatar.com/avatar/d702bb9bd075a9cef4cb98220f51031a?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"d702bb9bd075a9cef4cb98220f51031a","url":"https://api.github.com/users/bryanp","login":"bryanp","id":18920},"updated_at":"2011-10-28T22:14:18Z","labels":[{"name":"Enhancement","color":"0b02e1","url":"https://api.github.com/repos/metabahn/pakyow/labels/Enhancement"}],"comments":13,"closed_at":"2011-10-28T22:14:18Z","url":"https://api.github.com/repos/metabahn/pakyow/issues/8","body":"Would be nice to be able to bind nested hashes. For example:\r\n\r\n```ruby\r\n{ :contact => { :name => 'John Doe' } }\r\n```\r\n\r\nWould bind to...\r\n\r\n```html\r\n<span itemprop=\"contact[name]\">John Doe</span>\r\n```","html_url":"https://github.com/metabahn/pakyow/issues/8","title":"Binding Nested Hashes","number":8,"id":1523585,"created_at":"2011-08-30T19:27:13Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/d702bb9bd075a9cef4cb98220f51031a?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"d702bb9bd075a9cef4cb98220f51031a","url":"https://api.github.com/users/bryanp","login":"bryanp","id":18920},"updated_at":"2011-10-28T22:14:17Z","url":"https://api.github.com/repos/metabahn/pakyow/issues/comments/2561880","body":"Just pushed some changes that bring clarity to binding. \r\n\r\nSupport for wildcard itemprop types has been removed. \r\n\r\nAlso, a subtle but very profound change has been made to how data is bound as a type. This is how it was implemented:\r\n\r\n```ruby\r\nview.bind(x, :as => :MyDataType)\r\n```\r\n\r\nAnd the syntax has changed to:\r\n\r\n```ruby\r\nview.bind(x, :to => :my_data_type)\r\n```\r\n\r\nInstead of saying what type the data should be bound as, we say where the data should be bound to. In this case the data would be bound properly to data labels defined like this:\r\n\r\n```html\r\n<div itemprop=\"my_data_type[some_attribute]\">\r\n  ...\r\n</div>\r\n```\r\n\r\nThe same change has been made to binders. Instead of saying:\r\n\r\n```ruby\r\nbinder_for :MyDataType\r\n```\r\n\r\nYou now say:\r\n\r\n```ruby\r\nbinder_for :my_data_type\r\n```\r\n\r\nThis sets things up for a more functional system where data is not represented by models, but instead by primitive data structures (Arrays and Hashes). \r\n\r\nThese changes have been merged into release.","id":2561880,"created_at":"2011-10-28T22:14:17Z"}}