Reputation: 1612
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?
Upvotes: 14
Views: 11964
Reputation: 72885
amwmedia commented on GitHub on Oct 7, 2014 that "this appears to have native support using something like:"
{{ helper1 (helper2 text) }}
It does indeed appear to work natively, without the need to register a helper. Note that the helper inside the ()
braces is executed first, the helper outside last:
{{ executesLast (executesFirst text) }}
Upvotes: 28
Reputation: 464
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.
Upvotes: 5