Re:Stop sending template engines to the browser. How to make...
by MatthewPhillips on Thursday September 13, 2012 @09:30PM
(#4519575)
50 fields in a single template??? I use the parents technique because it punishes you for making gloat decisions like that.
When you have 3- or 4-level nested templates with 50+ fields to fill in, it's much easier to write (and especially to maintain) the snippets of HTML with {{name}}-type template tags, rather than writing the code to query the DOM and replace elements as needed. Especially if you have a designer who's comfortable manipulating HTML elements but allergic to JavaScript.