by nprateem · 2y ago · 0 comments
It's far better to use something that at least embeds the templates in the web page with some simple js to show it (eg alpinejs) and a simple, private API.
Why do you think the client side requires fewer partials, if you use the same scope of data changes?
I was never a JS fanboy but the modern JS/TS frameworks that let you organize and test the UI without an entire system running is better for maintenance imho.
It’s a non-point.
We don’t write 95% of the endpoints. They’re auto generated.
And this may be a shocking idea to you, but when we do need to build a custom endpoint, we still build it as a component (just like you would in React).
This means you have a single template per page and only need to split out partials for things that are actually shared, rather than for every action on a single page.