{"action":"created","issue":{"url":"https://api.github.com/repos/ampedandwired/html-webpack-plugin/issues/209","repository_url":"https://api.github.com/repos/ampedandwired/html-webpack-plugin","labels_url":"https://api.github.com/repos/ampedandwired/html-webpack-plugin/issues/209/labels{/name}","comments_url":"https://api.github.com/repos/ampedandwired/html-webpack-plugin/issues/209/comments","events_url":"https://api.github.com/repos/ampedandwired/html-webpack-plugin/issues/209/events","html_url":"https://github.com/ampedandwired/html-webpack-plugin/issues/209","id":131206665,"number":209,"title":"Jade partials with references to parent (template)","user":{"login":"MarianArlt","id":1492317,"avatar_url":"https://avatars.githubusercontent.com/u/1492317?v=3","gravatar_id":"","url":"https://api.github.com/users/MarianArlt","html_url":"https://github.com/MarianArlt","followers_url":"https://api.github.com/users/MarianArlt/followers","following_url":"https://api.github.com/users/MarianArlt/following{/other_user}","gists_url":"https://api.github.com/users/MarianArlt/gists{/gist_id}","starred_url":"https://api.github.com/users/MarianArlt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarianArlt/subscriptions","organizations_url":"https://api.github.com/users/MarianArlt/orgs","repos_url":"https://api.github.com/users/MarianArlt/repos","events_url":"https://api.github.com/users/MarianArlt/events{/privacy}","received_events_url":"https://api.github.com/users/MarianArlt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-02-04T01:05:15Z","updated_at":"2016-02-05T20:03:50Z","closed_at":null,"body":"With one of the last updates I have issues when I make a reference to a parents jade template file from inside an included jade partial. To better illustrate this my case is something like the following:\r\n    \r\n**Index.jade** _(The template called with HtmlWebpackPlugin)_\r\n\r\n    body\r\n        - sections = ['one', 'two', 'three', 'four', …]\r\n        for v, i in sections\r\n            section(id= v)\r\n                if i == 0\r\n                    include ./partials/sectionOne\r\n                if i == 1\r\n                    include ./partials/sectionTwo\r\n\r\n\r\n**sectionOne.jade** _(The partial)_\r\n\r\n    h1= 'This is section number ' + v + '!'\r\n    p= 'Section ' + v ' is definitely and totally the best section of all sections.'\r\n    button= v\r\n\r\nNow `v` and `i` from the loop should get passed down to the include where it should be reusable. Instead they will both be `undefined`. I also tried `#{v}` rather than just `v` with no success. _This worked fine before._\r\nIf I build another loop inside the include based on the attributes from the parents one, I even get a breaking error in the CLI because, well, undefined has no length. I'm watching all .jade files with `module: { loaders : [ { test: /\\.jade$/, ... } ] }`. I tried to set the loader in the HtmlWebpackPlugin section with `template: 'jade!./path/to/index.jade'` which would throw an error about the includes not being exported because of a missing loader type.\r\n\r\nI also tried this with the files from the [jade-loader example](https://github.com/ampedandwired/html-webpack-plugin/tree/master/examples/jade-loader) with the same effect.\r\n\r\nDo I have to deal differently with this since 2.x? Shouldn't have to, should I?"},"comment":{"url":"https://api.github.com/repos/ampedandwired/html-webpack-plugin/issues/comments/180535890","html_url":"https://github.com/ampedandwired/html-webpack-plugin/issues/209#issuecomment-180535890","issue_url":"https://api.github.com/repos/ampedandwired/html-webpack-plugin/issues/209","id":180535890,"user":{"login":"MarianArlt","id":1492317,"avatar_url":"https://avatars.githubusercontent.com/u/1492317?v=3","gravatar_id":"","url":"https://api.github.com/users/MarianArlt","html_url":"https://github.com/MarianArlt","followers_url":"https://api.github.com/users/MarianArlt/followers","following_url":"https://api.github.com/users/MarianArlt/following{/other_user}","gists_url":"https://api.github.com/users/MarianArlt/gists{/gist_id}","starred_url":"https://api.github.com/users/MarianArlt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarianArlt/subscriptions","organizations_url":"https://api.github.com/users/MarianArlt/orgs","repos_url":"https://api.github.com/users/MarianArlt/repos","events_url":"https://api.github.com/users/MarianArlt/events{/privacy}","received_events_url":"https://api.github.com/users/MarianArlt/received_events","type":"User","site_admin":false},"created_at":"2016-02-05T20:03:50Z","updated_at":"2016-02-05T20:03:50Z","body":"Too bad. Jade-loader isn't maintained very well. Guess this will take quite some time to get resolved. Thank you for the moment."}}