{"action":"created","issue":{"url":"https://api.github.com/repos/blaix/wren/issues/2","labels_url":"https://api.github.com/repos/blaix/wren/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/blaix/wren/issues/2/comments","events_url":"https://api.github.com/repos/blaix/wren/issues/2/events","html_url":"https://github.com/blaix/wren/issues/2","id":88013196,"number":2,"title":"Views","user":{"login":"blaix","id":664,"avatar_url":"https://avatars.githubusercontent.com/u/664?v=3","gravatar_id":"","url":"https://api.github.com/users/blaix","html_url":"https://github.com/blaix","followers_url":"https://api.github.com/users/blaix/followers","following_url":"https://api.github.com/users/blaix/following{/other_user}","gists_url":"https://api.github.com/users/blaix/gists{/gist_id}","starred_url":"https://api.github.com/users/blaix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blaix/subscriptions","organizations_url":"https://api.github.com/users/blaix/orgs","repos_url":"https://api.github.com/users/blaix/repos","events_url":"https://api.github.com/users/blaix/events{/privacy}","received_events_url":"https://api.github.com/users/blaix/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/blaix/wren/labels/idea","name":"idea","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-13T14:35:53Z","updated_at":"2015-08-11T14:44:20Z","closed_at":null,"body":"## Brain dump of how I want views to work:\r\n\r\nA view should be an object backed by a single model and be rendered with a template. The view provides the context for the template with a fallback to the model. No logic or `something.something_else` calls should be allowed in a template (mustache templates?).\r\n\r\nFor example:\r\n\r\n`<h1>{{title}}</h1>`\r\n\r\nwould get `title` from `view.title` with a fallback to `view.model.title`.\r\n\r\n### Nested views\r\n\r\nViews should be nestable. For example, think of a dashboard view:\r\n\r\n```\r\n<h1>Admin</h1>\r\n<section>{{recent_comments}}</section>\r\n<section>{{recent_posts}}</section>\r\n```\r\n\r\nThat template would get its context from a dashboard view object where `dashboard.recent_comments` is itself a view (with its own template) backed by a model representing a list of comments (similar for `recent_posts`)."},"comment":{"url":"https://api.github.com/repos/blaix/wren/issues/comments/129912711","html_url":"https://github.com/blaix/wren/issues/2#issuecomment-129912711","issue_url":"https://api.github.com/repos/blaix/wren/issues/2","id":129912711,"user":{"login":"blaix","id":664,"avatar_url":"https://avatars.githubusercontent.com/u/664?v=3","gravatar_id":"","url":"https://api.github.com/users/blaix","html_url":"https://github.com/blaix","followers_url":"https://api.github.com/users/blaix/followers","following_url":"https://api.github.com/users/blaix/following{/other_user}","gists_url":"https://api.github.com/users/blaix/gists{/gist_id}","starred_url":"https://api.github.com/users/blaix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blaix/subscriptions","organizations_url":"https://api.github.com/users/blaix/orgs","repos_url":"https://api.github.com/users/blaix/repos","events_url":"https://api.github.com/users/blaix/events{/privacy}","received_events_url":"https://api.github.com/users/blaix/received_events","type":"User","site_admin":false},"created_at":"2015-08-11T14:44:20Z","updated_at":"2015-08-11T14:44:20Z","body":"Tilt supports a context object as well as a locals hash: https://github.com/rtomayko/tilt"}}