3 ms·
You can use Jinja-style templates client-side too if you want (see nunchucks). But client-side rendering and server-side rendering have different use-cases. It
by allover 8y ago
You can use Jinja-style templates client-side too if you want (see nunchucks).
But client-side rendering and server-side rendering have different use-cases. It doesn't come down to just which is 'particularly readable'.
> If you absolutely must do JavaScript you should keep it separate of your HTML and other stuff
Why? This argument has been lost. If you're writing a rich client-side UI that makes sense to be "component-oriented", there is literally zero value in splitting each component into HTML and JS, it is a completely arbitrary 'separation by technology'.