4 ms·
I use a JS templating engine (Handlebars with compiled templates). When you have 3- or 4-level nested templates with 50+ fields to fill in, it's much easier to
by lincolnq 14y ago
I use a JS templating engine (Handlebars with compiled templates).
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.
- MatthewPhillips 14y ago50 fields in a single template??? I use the parents technique because it punishes you for making gloat decisions like that.