4 ms·
Unpoly https://unpoly.com https://unpoly.com is also worth a look if you are interested in these things. It combines Turbolinks and Stimulus functionality in a
by gerry_shaw 6y ago
Unpoly https://unpoly.com https://unpoly.com is also worth a look if you are interested in these things. It combines Turbolinks and Stimulus functionality in a very usable way.
- 1_player 6y agoMy killer unpoly features: * easy AJAX loading like turbolinks (<a href="?page=2" up-target=".content">) * easy AJAX modal (<a href="/users/new" up-modal="form">) * submit a form whenever any input changes (<input type="search" up-autosubmit up-delay="500">) * respects the way HTML is intended to be used, so the page still works even when JS is disabled
- NetOpWibby 6y agoI’m currently dealing with a modal issue within Svelte (pretty sure it’s due to createDispatch) and the Discord moves too fast to get help. Gonna check this out in the AM. EDIT: Couldn't sleep so checked it out now. Looking through the issues, there are a couple that are apparently "fixed in 1.0" but it doesn't look like 1.0 is coming anytime soon. Shame.
- deleted 6y ago[deleted]
- prox 6y agoWow! Thanks, that looks quite useful. Especially that it can work with all kinds of back ends.
- midrus 6y agoHappy unpoly user here too. I think it is way better than stimulus, turbolinks, htmlx, alpine, etc. Just doesn't have as good marketing as those.
- nickjj 6y ago> Just doesn't have as good marketing as those. And maybe documentation too. Turbolinks has really good docs and conceptually it's pretty easy to get going (1 line of JS and learning a few event handlers). Alpine and StimulusJS have really good docs / guides and tons of practical examples if you Google for a specific problem you're trying to solve. Unpoly's docs seem like it's mostly an HTML front-end to their API spec with very few examples. It's kind of difficult to figure out how to use most of what it does. There's also very little practical examples of using it if you Google around. I've heard of it in the past but never got into it because of the above.
- m-localhost 6y agoUnpoly is pretty good and complete. What I don't like is loading page specific JS/CSS via javascript. Turbolinks manages that for me and turbolink still executes inline JS. Turbolinks falls short in providing a "framework" in how to use third party libraries - how to initialize them and how to tear them down. I finally glued together a mini-framework with hints from stack overflow, but Unpoly and their concept of compilers[1] is much more consistent. [1] https://unpoly.com/up.compiler https://unpoly.com/up.compiler