Closed mpodciwinski closed 5 years ago
This is possible, yes. The patterns have been documented in past issues. Please have a look at those and let me know if you’re still having trouble making it work!
this is very close https://github.com/shannonmoeller/gulp-hb/issues/46#issuecomment-246763138, but i need render file from .hbs templates. How to do that?
Any ideas?
Unfortunately I don't have time to create the example code for you, but what you're trying to do is absolutely possible. You should be able to start with the code in #46 and also use lines 14-23 here:
https://github.com/shannonmoeller/tmp/blob/master/gulpfile.js
Hello, I wonder if it is possible to generate multiple subpages from one .json file.
example .json file
using .hbs template:
and render to separate .html files with custom names from data.json (for example
{{title}}
)it is possible?