htmlbars
htmlbars copied to clipboard
No module-less runtime present in dist/
It would be nice to have a runtime distribution that exposes window.HTMLBars
in environments that don't use a module system.
Is this possible given the fact that the project is relying heavily on modules?
@lazd - It is possible, yes. But I'd like to understand your use case more first. Can you explain in a bit more detail what you are looking for?
Yes I'd love to ship an optimized bundled build, it's just not a priority right now. cc @eventualbuddha
Right now, I'm including HTMLBars in a set of benchmarks of template systems as part of DOMly. I have a super old build marked as 0.1.0 that supported the module-less use case, and I'm using that (I think I ripped it from a demo).
In updating DOMly's dependencies, I checked back on HTMLBars to see if I could use npm or bower to fetch it instead of including it in the repo, but I'd rather not introduce AMD just to load HTMLBars.
@eventualbuddha's work would get us to a global build, but we could also create a custom build for globals that included loader.js in a closure. It is not ideal, but it would be a globals mode. I'd welcome it as a contribution for the interim.
Is this still up-for-grabs or should this be closed? I see this is referenced in commits. @mixonic
@Kuzirashi seems like commit is part of https://github.com/tildeio/htmlbars/pull/300
I see. So this needs to be open.