{"action":"created","issue":{"url":"https://api.github.com/repos/Starcounter/Starcounter/issues/3165","labels_url":"https://api.github.com/repos/Starcounter/Starcounter/issues/3165/labels{/name}","comments_url":"https://api.github.com/repos/Starcounter/Starcounter/issues/3165/comments","events_url":"https://api.github.com/repos/Starcounter/Starcounter/issues/3165/events","html_url":"https://github.com/Starcounter/Starcounter/issues/3165","id":121430480,"number":3165,"title":"On Page and Page.Html","user":{"login":"per-samuelsson","id":2902045,"avatar_url":"https://avatars.githubusercontent.com/u/2902045?v=3","gravatar_id":"","url":"https://api.github.com/users/per-samuelsson","html_url":"https://github.com/per-samuelsson","followers_url":"https://api.github.com/users/per-samuelsson/followers","following_url":"https://api.github.com/users/per-samuelsson/following{/other_user}","gists_url":"https://api.github.com/users/per-samuelsson/gists{/gist_id}","starred_url":"https://api.github.com/users/per-samuelsson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/per-samuelsson/subscriptions","organizations_url":"https://api.github.com/users/per-samuelsson/orgs","repos_url":"https://api.github.com/users/per-samuelsson/repos","events_url":"https://api.github.com/users/per-samuelsson/events{/privacy}","received_events_url":"https://api.github.com/users/per-samuelsson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-12-10T08:40:24Z","updated_at":"2015-12-18T05:18:51Z","closed_at":null,"body":"So whats the story behind this design?\r\n\r\nFor me, I'm confused there is a special meaning \"Html\" property. \r\n\r\nAnd even more: considering separation of concerns, I'm a little concerned about this tight coupling between a view model and the view.\r\n\r\nPlease confirm or correct this: the \"Html\" is there to allow JSON without code behind, and as a convenient thing? The idea is you can specify it there, as sort of a \"default view\", but any user of the viewmodel (if its based on `Page`) can set it to something else?\r\n\r\nRelated to this, I find it weird that `Page` *is a* `Json`. For me, the natual relationship would be that a `Page` (or, in our upcoming proposal, a `Partial`) *use/consume a* `Json`.\r\n\r\nWhats the advantages of the current design, compared to the below?\r\n\r\n`Products.json`\r\n```json\r\n{\r\n  \"Products\": [{ \r\n    \"Id\": \"Tesla Model S 85KW, 2015, ABC 123\",\r\n    \"Quantity\": 1\r\n  }]\r\n}\r\n```\r\n\r\n`Program.cs`\r\n```C#\r\nHandle.GET(\"/products\", () => {\r\n  return new Partial(new Products(), \"/pim/ProductList.html\");\r\n});\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/Starcounter/Starcounter/issues/comments/165675649","html_url":"https://github.com/Starcounter/Starcounter/issues/3165#issuecomment-165675649","issue_url":"https://api.github.com/repos/Starcounter/Starcounter/issues/3165","id":165675649,"user":{"login":"per-samuelsson","id":2902045,"avatar_url":"https://avatars.githubusercontent.com/u/2902045?v=3","gravatar_id":"","url":"https://api.github.com/users/per-samuelsson","html_url":"https://github.com/per-samuelsson","followers_url":"https://api.github.com/users/per-samuelsson/followers","following_url":"https://api.github.com/users/per-samuelsson/following{/other_user}","gists_url":"https://api.github.com/users/per-samuelsson/gists{/gist_id}","starred_url":"https://api.github.com/users/per-samuelsson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/per-samuelsson/subscriptions","organizations_url":"https://api.github.com/users/per-samuelsson/orgs","repos_url":"https://api.github.com/users/per-samuelsson/repos","events_url":"https://api.github.com/users/per-samuelsson/events{/privacy}","received_events_url":"https://api.github.com/users/per-samuelsson/received_events","type":"User","site_admin":false},"created_at":"2015-12-18T05:18:51Z","updated_at":"2015-12-18T05:18:51Z","body":"How does all of the above relate to the new `Partial` class? If you havent noticed, @Starcounter-Jack, we are just about to switch out `Page` for `Partial`, #3176. However, `Partial` still work pretty much the same way regarding the `Html` property."}}