YahooArchive / secure-handlebars

Handlebars Context Pre-compiler
BSD 3-Clause "New" or "Revised" License
45 stars 13 forks source link

is there a way to integrate secure-handlebars with hbsfy? #146

Open biswasaveek opened 7 years ago

biswasaveek commented 7 years ago

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 ?