|
|
|
|
|
by lincolnq
5022 days 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. |
|