Search code examples
handlebars.js

Is there a way to apply multiple helpers to a template in Handlebars?


I have two Handlebars helpers which I use.

First is timeboundset which takes an array and a datefield and only selects and applies those elements which fall after that datefield.

Second is sortedset which sorts the array first and then uses its elements.

Is there a way I can use both the helpers on the array in html itself and not doing any workaround in Javascript?


Solution

  • There are no plans to support that functionality.

    https://github.com/wycats/handlebars.js/issues/304

    Although, there's an implementation you could try out if you really want it.