-
Notifications
You must be signed in to change notification settings - Fork 14.9k
Description
when using the mustache backend, I'm seeing very odd index.html files. These seem correct from the corresponding JSON, so it's a problem w/in the JSONGenerator.
What seems to be happening is that there is some kind of race to write the index.json file, and things that used to be written to a local index.json in the directory hierarchy are now racing w/ one another in the flattened structure, since they're all just index.json
.
I think we either need to go back to using a proper directory structure, or we need an alternate way to deal with this in the flattened structure.
One option is to use the path in the filename. another is to use some kind of UUID and have a json file with the mapping that can be used, either from the JS or to generate the right links in the template. I guess we could also use something like we do for too long file names to make them unique.
@evelez7 @petrhosek do you have any thoughts?