{"action":"opened","issue":{"url":"https://api.github.com/repos/gryphonshafer/Mojo-Plugin-Toolkit/issues/2","labels_url":"https://api.github.com/repos/gryphonshafer/Mojo-Plugin-Toolkit/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/gryphonshafer/Mojo-Plugin-Toolkit/issues/2/comments","events_url":"https://api.github.com/repos/gryphonshafer/Mojo-Plugin-Toolkit/issues/2/events","html_url":"https://github.com/gryphonshafer/Mojo-Plugin-Toolkit/issues/2","id":117373645,"number":2,"title":"layout doesn't seem to work?","user":{"login":"TLINDEN","id":1322812,"avatar_url":"https://avatars.githubusercontent.com/u/1322812?v=3","gravatar_id":"","url":"https://api.github.com/users/TLINDEN","html_url":"https://github.com/TLINDEN","followers_url":"https://api.github.com/users/TLINDEN/followers","following_url":"https://api.github.com/users/TLINDEN/following{/other_user}","gists_url":"https://api.github.com/users/TLINDEN/gists{/gist_id}","starred_url":"https://api.github.com/users/TLINDEN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TLINDEN/subscriptions","organizations_url":"https://api.github.com/users/TLINDEN/orgs","repos_url":"https://api.github.com/users/TLINDEN/repos","events_url":"https://api.github.com/users/TLINDEN/events{/privacy}","received_events_url":"https://api.github.com/users/TLINDEN/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-17T15:07:30Z","updated_at":"2015-11-17T15:07:30Z","closed_at":null,"body":"Hi,\r\n\r\nI've got the following setup:\r\n\r\n    app->defaults(layout => 'main', handler => 'tt');\r\n    get '/' => sub { my $c = shift; $c->render(template => 'foo'); }\r\n\r\nPlugin instantiation is the same as in the docs.\r\n\r\nThe problem is that it renders foo.html.tt first and main.html.tt *afterwards*\r\n\r\n- Tom"}}