Re:Show HN: Moon – a tiny 6kb Javascript library inspired by...
by kbr on Sunday May 21, 2017 @02:16PM
(#14388384)
Moon is faster, only 6kb, has a more powerful templating engine, and a much simpler API. On the other hand, Marionette is a MVC library, and has more functionality.
Moon is just a view library, the other parts can be added in with moon-router [1] and moon-ssr [2].
Re:Show HN: Moon – a tiny 6kb Javascript library inspired by...
by elnygren on Saturday May 20, 2017 @12:09PM
(#14383026)
I had a very quick glance but it seems that RE:DOM is smaller, better documented and more mature (but probably otherwise similar). https://redom.js.org
Re:Show HN: Moon – a tiny 6kb Javascript library inspired by...
by kbr on Saturday May 20, 2017 @12:31PM
(#14383117)
Yes, but Moon's goal is to have syntax similar to Vue's, and as a result, requires an HTML template compiler, Javascript expression compiler, directive compiler, and different component logic.
RE:DOM doesn't have any of these, but only has a virtual DOM engine (which Moon has as well).
Re:Show HN: Moon – a tiny 6kb Javascript library inspired by...
by tenryuu on Saturday May 20, 2017 @09:16PM
(#14385257)
with the difference between sizes being a few kb, I don't think that they would entirely matter.
What really does is execution rate. Which one performs more efficiently. If the end result is DOM, it doesn't matter what syntax you're using, the client is the most important part
Moon is just a view library, the other parts can be added in with moon-router [1] and moon-ssr [2].
[1] https://github.com/KingPixil/moon-router
[2] https://github.com/KingPixil/moon-ssr
RE:DOM doesn't have any of these, but only has a virtual DOM engine (which Moon has as well).
It works just as well as Vue on my Android in Firefox, Chrome and even the Android Browser.
I wonder that a lot about Safari, particularly mobile Safari.
Can you let me know if any demos in the Getting Started[1] guide work?
[1] http://moonjs.ga/docs/getting-started.html