Skip to content

Commit

Permalink
feat(engine-handlebars): Demonstration of custom Handlebars helper
Browse files Browse the repository at this point in the history
  • Loading branch information
engelfrost committed Oct 11, 2018
1 parent a12df36 commit f330b5b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = function(Handlebars) {
Handlebars.registerHelper('test', function() {
return 'This is a test helper';
});
};
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,10 @@
"excludedPatternStates": [],
"excludedTags": []
}
]
],
"engines": {
"handlebars": {
"helpers": "helpers/*.js"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{test}}

0 comments on commit f330b5b

Please sign in to comment.