-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dynamic pages from root index are not merged properly #3
Comments
@yourpalal thanks for the heads up. I didn't think about that case. Unless I'm missing something it doesn't really make sense to return an array from the root index because there can only be 1 index (i.e. If you want to dynamically create Does that make sense? |
Ah okay, that makes sense. I had imagined that arrays would create children, not siblings. I.e. example.com/baz/foo, example.com/baz/bar. That makes sense. I guess the only thing I would want then is maybe an error message when you return an array from the index, and something in the documentation. I was thinking I might try contributing to the project at some point, is there any documentation on how to get started with that? eg. how to run the tests, any code conventions/etc |
Yeah I can see how that could be confusing. I'll add a warning soon. Ideas/contributions wold be great! I updated the readme with some basic info |
|
Add destfile option to enable plugin to be used with non-html files
If you export an array of data from site/pages/data.js, the resulting pages are create in the wrong tmp directory, and then are not ever merged into the site.
A simple bugfix that works in my case is changing
lib/broccoli-taco-handlebars.js:57
from
dirname.substring(0, dirname.lastIndexOf('/'))
to
dirname
That said, I presume the substring stuff is in there for a reason, so something a bit more complicated might be needed.
Otherwise BT is pretty cool :)
The text was updated successfully, but these errors were encountered: