Comments (9)
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 _foreach
-loop in your main file for each object.
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.
from grunt-bake.
I tried the _bake attribute but does not seem to work though. No pages were generated.
from grunt-bake.
How does your code look?
from grunt-bake.
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
from grunt-bake.
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.
from grunt-bake.
I tried to run grunt-bake but it seemed like nothing happened. I need help please...
from grunt-bake.
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.
from grunt-bake.
Okay. I got it working now! Thanks! :-)
from grunt-bake.
Glad you guys could hash it out. As always @david-zacharias thanks for being so on top on responding to user issues.
from grunt-bake.
Related Issues (20)
- Version for gulp HOT 1
- When in '_section', use properties outside this '_section' HOT 11
- Evaluate content inside of _section HOT 1
- Add variable for linking to originating file when using _bake-attribute HOT 2
- Integration of default transforms HOT 1
- Pass arrays/objects as inline attributes HOT 9
- Can't access properties in _section HOT 1
- bake-escape feature request HOT 20
- Simple bake test HOT 1
- foreach loop to build multiple files per object HOT 1
- Unset variables are rendered as "undefined" HOT 3
- Placeholder Default HOT 5
- Assign/use variable in same file HOT 1
- Builtin placeholders HOT 2
- How to convert a folder with bake ? HOT 2
- Generate Bake with grunt.config.get HOT 2
- Bake one HTML file / JSON section in one go HOT 5
- Iteration over objects in _foreach HOT 6
- Can I read from package.json? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grunt-bake.