jus
jus copied to clipboard
Support for more handlebars helpers
Although jus provides lots of handy helpers via lobars, there are still some things that I'm unsure can be achieved with the current set of tools. For instance, there aren't really any array/collection methods. This makes it difficult do do something like filtering and sorting a list of pages (say, for a blog post index).
I'd like to propose that we expand on the current collection of helpers. I see 3 possible ways of doing this
- Enable the jus user to define their own custom helpers
- Add support for a library like handlebars-helpers, which provides a lot of goodies
- Continue porting lodash methods to handlebars helpers under the lobars repository.
I think there might be potential conflicts between using lobars alongside the first two options, but I'm not quite sure how that would look.
@zeke pinging you here because you seem to own the lobars project, but it doesn't seem like it's been touched in a while. What do you think would be the best option here? I'm happy to work on any of the three, but I'm not sure what the best path forward is for this (or if anyone is even interested in this type of thing).
I think bringing in handlebars-helpers
might be the quickest win. Would you like to open a PR that adds that?
On it!