Skip to content

Instantly share code, notes, and snippets.

@tech4him1
Last active July 5, 2017 03:03
Show Gist options
  • Save tech4him1/291063215dfc7053e155390a572d3acf to your computer and use it in GitHub Desktop.
Save tech4him1/291063215dfc7053e155390a572d3acf to your computer and use it in GitHub Desktop.
var Metalsmith = require('metalsmith')
var inPlace = require('metalsmith-in-place')
//`jstransformer-handlebars` needs installed, but not `require`d.
var bubbleGumHelper = function(){
return "bubblegum-bubblegum-bubblegum";
};
Metalsmith(__dirname)
.use(inPlace({
engineOptions: {
helpers: {
"bubblegum": bubbleGumHelper
}
}
}))
.build(function(err){
if (err) throw err;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment