3 ms·
You are plain simply wrong. First of all, logic in templates is something which is OK to have. Different templates display information in different manners. Sec
by ronreiter 15y ago
You are plain simply wrong.
First of all, logic in templates is something which is OK to have. Different templates display information in different manners.
Second thing, I don't think you've seen how awful and unmaintained code which manipulates DOM instead of templating looks like.
- dools 15y agoThe point I'm making, though, is that the challenge of solving "maintainability of DOM manipulation code" is a simpler problem to solve than the creation of the perfect templating language. What's more, a good DOM manipulation strategy and library can be really easily ported to any language, freeing up your templates to go wherever you may feel is appropriate in the future.