{"comment":{"created_at":"2011-10-17T17:59:31Z","body":"+1","updated_at":"2011-10-17T17:59:31Z","url":"https://api.github.com/repos/S0RIEN/DataGridBundle/issues/comments/2432326","id":2432326,"user":{"gravatar_id":"bc3933dfb82da3245f4dbc13c02c3d8b","avatar_url":"https://secure.gravatar.com/avatar/bc3933dfb82da3245f4dbc13c02c3d8b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/Abhoryo","id":634235,"login":"Abhoryo"}},"action":"created","issue":{"number":45,"created_at":"2011-10-17T16:22:03Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"when you are setting grid to template you are calling\r\n\r\n    $this->render('Foo:Page:index.html.twig', array('data' => $grid->prepare()));\r\n\r\nnew way can be \r\n\r\n    $this->render('Foo:Page:index.html.twig', array('data' => $grid));\r\n\r\nand twig will call function `prepare` for you when you are drawing grid\r\n\r\n    <!- twig ->\r\n    grid(data, _self) will call prepare() function for data\r\n\r\nits ok for all?","comments":1,"title":"move prepare function to twig","updated_at":"2011-10-17T17:59:31Z","url":"https://api.github.com/repos/S0RIEN/DataGridBundle/issues/45","id":1930592,"assignee":null,"milestone":null,"closed_at":null,"user":{"gravatar_id":"dec83d829313951d252670c549717129","avatar_url":"https://secure.gravatar.com/avatar/dec83d829313951d252670c549717129?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/S0RIEN","id":779163,"login":"S0RIEN"},"html_url":"https://github.com/S0RIEN/DataGridBundle/issues/45","labels":[{"name":"Enhancement","url":"https://api.github.com/repos/S0RIEN/DataGridBundle/labels/Enhancement","color":"02d7e1"}],"state":"open"},"legacy":{"issue_id":1930592,"comment_id":2432326}}