G
G
goncho2018-12-12 22:31:46
JSON
goncho, 2018-12-12 22:31:46

How to register helper in handlebars?

Good evening, I ran into a problem, I can’t register this helper
https://github.com/shannonmoeller/handlebars-group-by
show me how to register it, there is not much information about it!
I understand how to connect when you create it yourself, but then I just have to register it, but how ??
constantly shows an error that message: "Missing helper: "group""
Where should I enter this?
gulpfile.js?
var handlebars = require('handlebars'),
groupBy = require('handlebars-group-by');
handlebars.registerHelper(groupBy(handlebars));

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question