1.1.2 • Published 8 years ago
gulp-json-to-hbs-to-html v1.1.2
gulp-json-to-hbs-to-html
A Gulp library to compile HTML from JSON and Handlebars templates
DEPRECATED: gulp-consolidate-render provides more flexible template rendering in combination with YAML frontmatter.
var gulp = require("gulp");
var jsonHbsHtml = require("gulp-json-to-hbs-to-html");
gulp.src("./data/**/*.json")
.pipe(jsonHbsHtml({
prefix: "templates/",
suffix: "./handlebars"
}))
.pipe(gulp.dest("./public"));