Skip to content
This repository has been archived by the owner on Sep 5, 2018. It is now read-only.

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

Open
biswasaveek opened this issue Jan 23, 2017 · 1 comment
Open

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

biswasaveek opened this issue Jan 23, 2017 · 1 comment

Comments

@biswasaveek
Copy link

No description provided.

@biswasaveek biswasaveek changed the title how to use secure-handlebars in a gulp task (something simialr to hbsfy)? how to use secure-handlebars in a gulp task (something similar to hbsfy)? Jan 23, 2017
@biswasaveek biswasaveek changed the title how to use secure-handlebars in a gulp task (something similar to hbsfy)? is there a way to integrate secure-handlebars with hbsfy? Jan 23, 2017
@biswasaveek
Copy link
Author

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 ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant