{"action":"opened","issue":{"url":"https://api.github.com/repos/ufront/ufront-mvc/issues/6","labels_url":"https://api.github.com/repos/ufront/ufront-mvc/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/ufront/ufront-mvc/issues/6/comments","events_url":"https://api.github.com/repos/ufront/ufront-mvc/issues/6/events","html_url":"https://github.com/ufront/ufront-mvc/issues/6","id":55237288,"number":6,"title":"Supporting partials.","user":{"login":"ProG4mr","id":2106619,"avatar_url":"https://avatars.githubusercontent.com/u/2106619?v=3","gravatar_id":"","url":"https://api.github.com/users/ProG4mr","html_url":"https://github.com/ProG4mr","followers_url":"https://api.github.com/users/ProG4mr/followers","following_url":"https://api.github.com/users/ProG4mr/following{/other_user}","gists_url":"https://api.github.com/users/ProG4mr/gists{/gist_id}","starred_url":"https://api.github.com/users/ProG4mr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ProG4mr/subscriptions","organizations_url":"https://api.github.com/users/ProG4mr/orgs","repos_url":"https://api.github.com/users/ProG4mr/repos","events_url":"https://api.github.com/users/ProG4mr/events{/privacy}","received_events_url":"https://api.github.com/users/ProG4mr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-23T02:23:18Z","updated_at":"2015-01-23T02:23:18Z","closed_at":null,"body":"Hi, now that i have the templating engine supporting partials (using Stipple) I'm having difficulties splitting the page processing to different classes.\r\n\r\nIdeally i would have different classes like NavBar.hx taking care of the navigation bar, SideBar.hx taking care of the side bar, Footer.hx taking care of the footer etc...\r\n\r\nThe way I'm doing this is by assigning the partials to viewResult global values:\r\n\r\n```haxe\r\nViewResult.globalValues.set( \"navBar\", function(_,_) {  return NavBar.generate();  } );\r\nViewResult.globalValues.set( \"sideBar\", function(_,_) {  return SideBar.generate();  } );\r\nViewResult.globalValues.set( \"footer\", function(_,_) {  return Footer.generate();  } );\r\n```\r\n\r\nNow the trouble is implementing the NavBar.generate() method, there is no ready solution to process a template file and return its result to be used as a partial in the layout. ViewResult is meant to be used \r\nrn its result to be used as a partial in the layout. ViewResult is meant to be used once and its result returned as an HTTP response.\r\n\r\nWhat would be a good solution to this problem? Think something like ViewResult can be worked out to only process partials? I can implement it if there is a good solution."}}