3 ms·
The hopefully obvious answer to your question is to not generate markup in PHP (or any server-side language). These are the kinds of questions that Backbone, Sp
by kaiuhl 14y ago
The hopefully obvious answer to your question is to not generate markup in PHP (or any server-side language). These are the kinds of questions that Backbone, Spine, Ember, etc attempts to solve. You should look toward separating view concerns from your business logic and stop procedurally generating html in PHP.
- ars 14y agoI separate my concerns just fine using PHP. Different files, not different languages. PHP IS a templating language. Writing another one on top of it is just adding complexity for no gain.