I have added secure-handlebars in the precompiler option of hbsfy
var hbsfy = require("hbsfy").configure({ precompiler: "secure-handlebars" });
and then
var app = gulp.src('./js/app.js').pipe(browserify({ transform: [hbsfy] }));
However, on the browser it tells me:
"Error: Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version (>= 4.0.0) or downgrade your runtime to an older version (>= 2.0.0-beta.1)"
In what way can I use secure-handlebars with hbsfy ?
I have added secure-handlebars in the precompiler option of hbsfy
var hbsfy = require("hbsfy").configure({ precompiler: "secure-handlebars" });
and then
var app = gulp.src('./js/app.js').pipe(browserify({ transform: [hbsfy] }));
However, on the browser it tells me:
In what way can I use secure-handlebars with hbsfy ?