Answer the question
In order to leave comments, you need to log in
What is the difference between Helpers and Partials in handlebars?
Hello.
Tell me please. I'm looking at the docks on handlebars and don't quite understand what is the fundamental difference between Helpers and Partials .
Helpers , if I understand correctly, is a callback function that displays the result of execution in the template.
So Partials does the same thing, tell me what is the fundamental difference between them?
Thank you.
Answer the question
In order to leave comments, you need to log in
I don’t know how specifically in Handlebars, but they must differ in purpose.
Helpers - small helper functions
Partials - reusable template parts.
Helpers serve for any auxiliary functions (a la slug, date, truncate).
Partials are used to display the same blocks in different templates.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question