-
Notifications
You must be signed in to change notification settings - Fork 18
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
JSON file or CSV convert to multiple HTML files #83
Comments
So you have an array of objects in your JSON data, right? I guess so. Do you also want to have one main file that links to the generated files? If yes, you can use the _bake-attribute for generating extra files from within the If not, you need to run bake for each file. Which is possible with the Grund-files syntax. The problem I see and you probably stumbled upon is how to tell bake which object to use for each file. Currently I see no way to do this, sorry. Maybe @MathiasPaumgarten can come up with a hack that will do the trick. |
I tried the _bake attribute but does not seem to work though. No pages were generated. |
How does your code look? |
I only tried to run the Simple bake to be sure it will generate a couple of html pages but it did not seem to work on my node.js - Here is the simple bake click here |
Without more information about your specific settings I can not provide more help. Simple bake (and all other features) run on my local configuration as well as on travis CI. |
I get the feeling that you missed to read the basics of Grunt. So please take time to read the Getting Started guide. I will close your issue for now because it is not a feature request or bug report related to this project. Probably stackoverflow the better place to get help. But first, please read the guide. |
Okay. I got it working now! Thanks! :-) |
Glad you guys could hash it out. As always @david-zacharias thanks for being so on top on responding to user issues. |
Can someone please show me how to generate a JSON or CSV file to multiple HTML files? Basically, I'm looking for each JSON object to be converted into a single HTML page (so if there are 50 objects then I will have 50 HTML files). Or each row into a single HTML file. I tried different scenarios but no luck.
The text was updated successfully, but these errors were encountered: