htmlbars icon indicating copy to clipboard operation
htmlbars copied to clipboard

No module-less runtime present in dist/

Open lazd opened this issue 10 years ago • 7 comments

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 avatar Nov 17 '14 18:11 lazd

@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?

rwjblue avatar Nov 17 '14 18:11 rwjblue

Yes I'd love to ship an optimized bundled build, it's just not a priority right now. cc @eventualbuddha

mmun avatar Nov 17 '14 18:11 mmun

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.

lazd avatar Nov 17 '14 18:11 lazd

@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.

mixonic avatar Dec 13 '14 16:12 mixonic

Is this still up-for-grabs or should this be closed? I see this is referenced in commits. @mixonic

e00dan avatar Sep 21 '15 12:09 e00dan

@Kuzirashi seems like commit is part of https://github.com/tildeio/htmlbars/pull/300

mixonic avatar Sep 21 '15 13:09 mixonic

I see. So this needs to be open.

e00dan avatar Sep 21 '15 13:09 e00dan