Helpers

What if you want to call JavaScript methods inside your Handlebars template? Handlebars lets you register helper methods you can use inside your templates

Good job! That's it for "Helpers."

Need a second look? Watch again

Helpers

What if you want to call JavaScript methods inside your Handlebars template? Handlebars lets you register helper methods you can use inside your templates. In this episode we'll look at how to do this using the Handlebars.registerHelper function. We'll also take a closer look at what "this" points to inside a template, and how to pass one or more parameters to a helper function.

  • Handlebars
  • Tutorial
Join the Discussion

Want to leave a comment? .