kgar / foundry-vtt-more-handlebars-helpers

A Foundry VTT Module which registers a some additional handlebars helpers.
MIT License
2 stars 0 forks source link

Even More Handlebars Helpers #10

Open kristianserrano opened 9 months ago

kristianserrano commented 9 months ago

I'm not meaning to be greedy here, but I've had half a mind to try to make a module that just has all of these. It's a bit beyond my skill set though.

Would it be crazy to include all of those helpers?

kgar commented 9 months ago

Not crazy at all. That may well be the endgame goal, hahaha.

I have looked into this very thing at the outset of this module, but I'd need to either introduce a bundler or hand-add them all. Then, I'd need to document them in the readme. And they'd need to be prefixed with my module namespace to avoid any possible collisions with Foundry core or other modules.

It just takes time, since I'm doing it by hand and curating it for Foundry, using vanilla JS instead of a bundler, and fussing over how to handle things like invalid input.

I've been adding them on an as-needed basis. To tackle a project of that size, it'd be best to do them one by one as standalone issues.

I'm thoroughly enmeshed in a different module project, so I typically drop in to work on this one like once a week, so tackling the most critical / needed helpers first is key.

With that said, if there are some you particularly need, let's break those out into issues and get them folded in.

kristianserrano commented 9 months ago

Regarding the bundler, yeah, that's about as far as I got.

I'll try to think of a couple of upcoming needs. Some I've just added to my modules when needed (namespaced as well). If something new comes up, I'll certainly add it, or maybe even submit a PR for it.

farling42 commented 5 months ago

A possibly better starting point would be https://github.com/Budibase/handlebars-helpers since budibase has removed the helpers which have a lot of dependencies and which mostly only work in a node environment (such as date, fs, logging, markdown)