{"action":"created","issue":{"url":"https://api.github.com/repos/Starcounter/Starcounter/issues/3202","labels_url":"https://api.github.com/repos/Starcounter/Starcounter/issues/3202/labels{/name}","comments_url":"https://api.github.com/repos/Starcounter/Starcounter/issues/3202/comments","events_url":"https://api.github.com/repos/Starcounter/Starcounter/issues/3202/events","html_url":"https://github.com/Starcounter/Starcounter/issues/3202","id":122904315,"number":3202,"title":"Remove Page and Partial class","user":{"login":"Starcounter-Jack","id":1219049,"avatar_url":"https://avatars.githubusercontent.com/u/1219049?v=3","gravatar_id":"","url":"https://api.github.com/users/Starcounter-Jack","html_url":"https://github.com/Starcounter-Jack","followers_url":"https://api.github.com/users/Starcounter-Jack/followers","following_url":"https://api.github.com/users/Starcounter-Jack/following{/other_user}","gists_url":"https://api.github.com/users/Starcounter-Jack/gists{/gist_id}","starred_url":"https://api.github.com/users/Starcounter-Jack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Starcounter-Jack/subscriptions","organizations_url":"https://api.github.com/users/Starcounter-Jack/orgs","repos_url":"https://api.github.com/users/Starcounter-Jack/repos","events_url":"https://api.github.com/users/Starcounter-Jack/events{/privacy}","received_events_url":"https://api.github.com/users/Starcounter-Jack/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"chrhol","id":1658979,"avatar_url":"https://avatars.githubusercontent.com/u/1658979?v=3","gravatar_id":"","url":"https://api.github.com/users/chrhol","html_url":"https://github.com/chrhol","followers_url":"https://api.github.com/users/chrhol/followers","following_url":"https://api.github.com/users/chrhol/following{/other_user}","gists_url":"https://api.github.com/users/chrhol/gists{/gist_id}","starred_url":"https://api.github.com/users/chrhol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrhol/subscriptions","organizations_url":"https://api.github.com/users/chrhol/orgs","repos_url":"https://api.github.com/users/chrhol/repos","events_url":"https://api.github.com/users/chrhol/events{/privacy}","received_events_url":"https://api.github.com/users/chrhol/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-12-18T08:30:28Z","updated_at":"2015-12-18T08:37:39Z","closed_at":null,"body":"We are discussing fixing the Page/Partial problem.\r\n\r\n### Problems\r\n\r\n1. Implicit Magic clouds the understanding of Starcounter\r\n2. What base class should be used when \r\n3. Visual Studio templates\r\n4. Separation of concerns. View models can be used by many types of views\r\n\r\n### Consequences\r\n\r\nThis will affect the following:\r\n\r\n1. HTML merger. Needs to be moved to middleware.\r\n2. Automatic standalone mode. Needs to be moved to middleware.\r\n\r\nWe need to investigate how to add middleware. This should be done by considering how it is done in dotnet (aka dnx) so things does not brake in future versions.\r\n\r\nWe will keep a deprecated Page class that uses the new tech for backwards compatibility. Starcounter should **NOT*** be allowed to reference this class anywhere in its code base.\r\n"},"comment":{"url":"https://api.github.com/repos/Starcounter/Starcounter/issues/comments/165714419","html_url":"https://github.com/Starcounter/Starcounter/issues/3202#issuecomment-165714419","issue_url":"https://api.github.com/repos/Starcounter/Starcounter/issues/3202","id":165714419,"user":{"login":"Starcounter-Jack","id":1219049,"avatar_url":"https://avatars.githubusercontent.com/u/1219049?v=3","gravatar_id":"","url":"https://api.github.com/users/Starcounter-Jack","html_url":"https://github.com/Starcounter-Jack","followers_url":"https://api.github.com/users/Starcounter-Jack/followers","following_url":"https://api.github.com/users/Starcounter-Jack/following{/other_user}","gists_url":"https://api.github.com/users/Starcounter-Jack/gists{/gist_id}","starred_url":"https://api.github.com/users/Starcounter-Jack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Starcounter-Jack/subscriptions","organizations_url":"https://api.github.com/users/Starcounter-Jack/orgs","repos_url":"https://api.github.com/users/Starcounter-Jack/repos","events_url":"https://api.github.com/users/Starcounter-Jack/events{/privacy}","received_events_url":"https://api.github.com/users/Starcounter-Jack/received_events","type":"User","site_admin":false},"created_at":"2015-12-18T08:37:38Z","updated_at":"2015-12-18T08:37:38Z","body":"```c#\r\n\r\nclass MyApp \r\n{\r\n    static void Main() {\r\n         Handle.GET(\"/person\", (Request r) => {\r\n              if (r.Accept.Html) {\r\n                   return Self.GET(\"/person.html\");\r\n              }\r\n              return new PersonPage();\r\n         });\r\n    }\r\n}\r\n\r\npublic partial class PersonPage : Json {\r\n}\r\n```\r\n\r\npersonpage.json\r\n```\r\n{\r\n   FirstName:\"\",\r\n   LastName:\"\"\r\n}\r\n```"}}