{"action":"created","issue":{"url":"https://api.github.com/repos/IBM-Swift/Kitura-StencilTemplateEngine/issues/16","repository_url":"https://api.github.com/repos/IBM-Swift/Kitura-StencilTemplateEngine","labels_url":"https://api.github.com/repos/IBM-Swift/Kitura-StencilTemplateEngine/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/IBM-Swift/Kitura-StencilTemplateEngine/issues/16/comments","events_url":"https://api.github.com/repos/IBM-Swift/Kitura-StencilTemplateEngine/issues/16/events","html_url":"https://github.com/IBM-Swift/Kitura-StencilTemplateEngine/issues/16","id":231872173,"number":16,"title":"Extend a layout from a template located in a sub-directory","user":{"login":"gmosx","id":37342,"avatar_url":"https://avatars2.githubusercontent.com/u/37342?v=3","gravatar_id":"","url":"https://api.github.com/users/gmosx","html_url":"https://github.com/gmosx","followers_url":"https://api.github.com/users/gmosx/followers","following_url":"https://api.github.com/users/gmosx/following{/other_user}","gists_url":"https://api.github.com/users/gmosx/gists{/gist_id}","starred_url":"https://api.github.com/users/gmosx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gmosx/subscriptions","organizations_url":"https://api.github.com/users/gmosx/orgs","repos_url":"https://api.github.com/users/gmosx/repos","events_url":"https://api.github.com/users/gmosx/events{/privacy}","received_events_url":"https://api.github.com/users/gmosx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-05-28T14:22:06Z","updated_at":"2017-06-13T11:45:15Z","closed_at":null,"body":"I would like to have the following structure in my Views directory:\r\n\r\n```\r\nViews/layout.stencil\r\nViews/index.stencil\r\nViews/users/list.stencil\r\n```\r\n\r\nI can extend `layout.stencil` from `index.stencil` using:\r\n\r\n```\r\n{% extends \"layout.stencil\" %}\r\n```\r\n\r\nbut not from `users/list.stencil`. Both\r\n\r\n```\r\n{% extends \"../layout.stencil\" %}\r\n```\r\n\r\nand\r\n\r\n```\r\n{% extends \"/layout.stencil\" %}\r\n```\r\n\r\nthrow an error:\r\n\r\n```\r\nStencil.SuspiciousFileOperation\r\n```\r\n\r\nI think this is a useful/valid use case that I would expect to work.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/IBM-Swift/Kitura-StencilTemplateEngine/issues/comments/308090643","html_url":"https://github.com/IBM-Swift/Kitura-StencilTemplateEngine/issues/16#issuecomment-308090643","issue_url":"https://api.github.com/repos/IBM-Swift/Kitura-StencilTemplateEngine/issues/16","id":308090643,"user":{"login":"vadimeisenbergibm","id":16784982,"avatar_url":"https://avatars2.githubusercontent.com/u/16784982?v=3","gravatar_id":"","url":"https://api.github.com/users/vadimeisenbergibm","html_url":"https://github.com/vadimeisenbergibm","followers_url":"https://api.github.com/users/vadimeisenbergibm/followers","following_url":"https://api.github.com/users/vadimeisenbergibm/following{/other_user}","gists_url":"https://api.github.com/users/vadimeisenbergibm/gists{/gist_id}","starred_url":"https://api.github.com/users/vadimeisenbergibm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vadimeisenbergibm/subscriptions","organizations_url":"https://api.github.com/users/vadimeisenbergibm/orgs","repos_url":"https://api.github.com/users/vadimeisenbergibm/repos","events_url":"https://api.github.com/users/vadimeisenbergibm/events{/privacy}","received_events_url":"https://api.github.com/users/vadimeisenbergibm/received_events","type":"User","site_admin":false},"created_at":"2017-06-13T11:45:14Z","updated_at":"2017-06-13T11:45:14Z","body":"Fixed in Kitura 1.7.4\r\n\r\nSee example in \r\nhttps://github.com/IBM-Swift/Kitura-Sample/blob/master/Sources/KituraSampleRouter/RouterCreator.swift#L210\r\n\r\nand the `include` in\r\nhttps://github.com/IBM-Swift/Kitura-Sample/blob/master/Views/subdirectory/documentInSubdirectory.stencil#L16\r\n\r\nIt works for `extend` as well."}}
{"actor":{"display_login":"vadimeisenbergibm"}}