4 ms·
This one looks very similar to Ractive http://www.ractivejs.org/ http://www.ractivejs.org/ Which isn't a bad thing :).
by oweiler 11y ago
This one looks very similar to Ractive
http://www.ractivejs.org/ http://www.ractivejs.org/
Which isn't a bad thing :).
- mercer 11y agoCould someone tell me a bit about how the two differ? I've built a decently-sized app with Ractive.js and really like it, and I might be working on an app soon where either Ractive.js or Vue.js seem like a good option. From what I've gathered so far, Vue seems like it is basically a better Ractive, and it makes more sense to use it for my next project. But perhaps I'm missing some important differences between the two?
- nailer 11y agoRactive uses mustache templates, which I prefer as - nearly every web developer already knows mustache - mustache distinguishes what's HTML and what's not I also like ractive because it has two way bindings, and promises for when DOM changes, but maybe Vue also has those.
- mercer 11y agoFrom what I gather it's quite possible to use mustache for Vue as well, and it also does two-way binding. I'm mostly interested in the differences between the two. That said, the reason I used Ractive in an earlier project instead of React is exactly what you point out. Mustache is much easier for other developers to start using.
- gedy 11y agoI've wondered the same, as I really like Ractive. Briefly what I found is: Vue seems using "magic mode" vs the Ractive.get/Ractive.set. Ractive uses virtual DOM, Vue does not.