evanmoran / oj

Unified web templating for the people. Thirsty people.
MIT License
445 stars 7 forks source link

Compatibility with Zepto, Minified.js, jquip and others? #17

Closed IngwiePhoenix closed 6 years ago

IngwiePhoenix commented 9 years ago

I just wanted to ask if the state of compatibility with known jQuery alternative is currently tested or known? I want to see if I can get away from jQuery to a smaller, thinner alternative.

evanmoran commented 9 years ago

I planned for it to work with Zepto as it uses very little of jQuery's features, but I didn't yet try it (jquery 2.0 is getting smaller!). By default oj picks up the global $ if such is defined. If not, just set oj.$ = zepto after oj loads. I use oj.$ everywhere internally for this purpose. Let me know how it works for you!

IngwiePhoenix commented 9 years ago

I just read the code and noticed what you ment. Also saw quite some nice API that I didn't see in the docs! (extendInto(), for instance).

I'll let you know if I managed to do some more testing! :)

evanmoran commented 6 years ago

Closing for now as I'm focused on OJ v2.0. Please add this back in after the 2.0 release if it doesn't work for you!