{"action":"created","issue":{"url":"https://api.github.com/repos/superwolff/metalsmith-in-place/issues/15","labels_url":"https://api.github.com/repos/superwolff/metalsmith-in-place/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/superwolff/metalsmith-in-place/issues/15/comments","events_url":"https://api.github.com/repos/superwolff/metalsmith-in-place/issues/15/events","html_url":"https://github.com/superwolff/metalsmith-in-place/issues/15","id":96056380,"number":15,"title":"Template engine includes regression from metalsmith-templates","user":{"login":"madeofpeople","id":79221,"avatar_url":"https://avatars.githubusercontent.com/u/79221?v=3","gravatar_id":"","url":"https://api.github.com/users/madeofpeople","html_url":"https://github.com/madeofpeople","followers_url":"https://api.github.com/users/madeofpeople/followers","following_url":"https://api.github.com/users/madeofpeople/following{/other_user}","gists_url":"https://api.github.com/users/madeofpeople/gists{/gist_id}","starred_url":"https://api.github.com/users/madeofpeople/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/madeofpeople/subscriptions","organizations_url":"https://api.github.com/users/madeofpeople/orgs","repos_url":"https://api.github.com/users/madeofpeople/repos","events_url":"https://api.github.com/users/madeofpeople/events{/privacy}","received_events_url":"https://api.github.com/users/madeofpeople/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-20T12:48:29Z","updated_at":"2015-07-20T18:50:51Z","closed_at":null,"body":"I understand, and support the splitting of metalsmith-in-place and layouts from metalsmith-templates, but one bit of functionality that was very useful to me, is not possible with in metalsmith-in-place that does in fact work in metalsmith-templates when the inPlace key is set to true, file includes.\r\n\r\nswig example\r\n```\r\n/*!\r\nComponent Name\r\n\r\nComponent description\r\n\r\nMarkup:\r\n{% include \"components/molecules/cta/cta.html\" %}\r\n*/\r\n\r\n.cta-wrapper {\r\n  @extend .clearfix;\r\n  clear: both;\r\n  background: #dedede;\r\n  .cta {\r\n    text-align: center;\r\n  }\r\n}\r\n```\r\n\r\nresults in:\r\n```\r\n> metalsmith -c kstatic_preprocess_scss.json\r\n  Metalsmith · ENOENT, no such file or directory '/components/molecules/cta/cta.html'\r\n```\r\n\r\nstranger yet changing the path with ```../``` has no effect on the error so using ```{% include \"components/molecules/cta/cta.html\" %}``` results in no modification to the path in the error.\r\n\r\nWhich is to say both\r\n```{% include \"components/molecules/cta/cta.html\" %}```\r\nand\r\n```{% include \"../../../components/molecules/cta/cta.html\" %}```\r\nresult in…\r\n```Metalsmith · ENOENT, no such file or directory '/components/molecules/cta/cta.html'```\r\n\r\nThe same example works perfectly with metalsmith-tempaltes when the inPlace option is on."},"comment":{"url":"https://api.github.com/repos/superwolff/metalsmith-in-place/issues/comments/122986288","html_url":"https://github.com/superwolff/metalsmith-in-place/issues/15#issuecomment-122986288","issue_url":"https://api.github.com/repos/superwolff/metalsmith-in-place/issues/15","id":122986288,"user":{"login":"madeofpeople","id":79221,"avatar_url":"https://avatars.githubusercontent.com/u/79221?v=3","gravatar_id":"","url":"https://api.github.com/users/madeofpeople","html_url":"https://github.com/madeofpeople","followers_url":"https://api.github.com/users/madeofpeople/followers","following_url":"https://api.github.com/users/madeofpeople/following{/other_user}","gists_url":"https://api.github.com/users/madeofpeople/gists{/gist_id}","starred_url":"https://api.github.com/users/madeofpeople/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/madeofpeople/subscriptions","organizations_url":"https://api.github.com/users/madeofpeople/orgs","repos_url":"https://api.github.com/users/madeofpeople/repos","events_url":"https://api.github.com/users/madeofpeople/events{/privacy}","received_events_url":"https://api.github.com/users/madeofpeople/received_events","type":"User","site_admin":false},"created_at":"2015-07-20T18:50:50Z","updated_at":"2015-07-20T18:50:50Z","body":"Thanks, will report back if I uncover anything."}}