Closed micahgodbolt closed 7 years ago
This addresses #111
Looks good, I'll take a better look asap and see if we can merge this. Thanks for the pr!
@ismay thanks! I'm open to changing the param name if you prefer. Also I'm making the assumption that pattern and partialExtension are 2 different things (one is about src files, the other about partial template files.
Also, I went with strict extension matching vs the more complex match() that you use in pattern (which takes */.html). I don't see an instance where we need to make sure partials match full pattern as we'll be explicitly calling the partial path on include.
I'm open to changing the param name if you prefer
I think it's fine, partialExtension is a nice descriptive name.
Also I'm making the assumption that pattern and partialExtension are 2 different things (one is about src files, the other about partial template files.
Yeah I think that's the best solution. Making partialExtension accept a glob would only make it confusing in my opinion.
I don't see an instance where we need to make sure partials match full pattern as we'll be explicitly calling the partial path on include.
Yeah exactly.
Released as 1.8.0
Discovered that similarly, if you rename any layouts to .hbs
...it will then decide to look for your partials with .hbs
extensions rather than .html
...so you're stuck leaving page layouts as .html
.
I'm using version 1.8.1
Updating a test to demonstrate error mention in #111