{"action":"opened","issue":{"url":"https://api.github.com/repos/revel/revel/issues/1041","repository_url":"https://api.github.com/repos/revel/revel","labels_url":"https://api.github.com/repos/revel/revel/issues/1041/labels{/name}","comments_url":"https://api.github.com/repos/revel/revel/issues/1041/comments","events_url":"https://api.github.com/repos/revel/revel/issues/1041/events","html_url":"https://github.com/revel/revel/issues/1041","id":148470395,"number":1041,"title":"Template path priority","user":{"login":"mrLSD","id":798086,"avatar_url":"https://avatars.githubusercontent.com/u/798086?v=3","gravatar_id":"","url":"https://api.github.com/users/mrLSD","html_url":"https://github.com/mrLSD","followers_url":"https://api.github.com/users/mrLSD/followers","following_url":"https://api.github.com/users/mrLSD/following{/other_user}","gists_url":"https://api.github.com/users/mrLSD/gists{/gist_id}","starred_url":"https://api.github.com/users/mrLSD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrLSD/subscriptions","organizations_url":"https://api.github.com/users/mrLSD/orgs","repos_url":"https://api.github.com/users/mrLSD/repos","events_url":"https://api.github.com/users/mrLSD/events{/privacy}","received_events_url":"https://api.github.com/users/mrLSD/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-14T20:14:47Z","updated_at":"2016-04-14T20:14:47Z","closed_at":null,"body":"There are some priority for templates bug.\r\n\r\nI have controller:\r\n**myapp/app/controllers/controller1.go**\r\n\r\nand action for it: index\r\nI have view:\r\n**myapp/app/views/controller1/index.html**\r\n\r\nI have module. And (for example):\r\n**mymodule/app/controllers/controller1.go**\r\naction: index\r\n**mymodule/app/views/controller1/index.html**\r\n\r\nand at my config:\r\n\r\n`*       /myurl     module:mymodule`\r\n\r\nand for URL: **/myurl/controller1/index**\r\nI sow correct behavior for controller, **BUT** template got from:\r\n**myapp/app/views/controller1/index.html**\r\n\r\nIt's wrong priority path.\r\n\r\nMore over. \r\nIf I have view:\r\n**mymodule/app/views/controller1/index1.html**\r\n\r\nIf at template I including other template:\r\n\r\n> {{template \"controller1/index.html\" .}}\r\n\r\nincluded template:\r\n**myapp/app/views/controller1/index.html**\r\nsame results for layout.\r\n\r\nHow to fix it?"}}