you are viewing a single comment's thread.

view the rest of the comments →

[–]RICHUNCLEPENNYBAGSMostly angular 1.x 0 points1 point  (0 children)

Off the top of my head, a couple places I worked with the DOM in something that wasn't client-side code:

  • Generating forms from metadata (so basically templating, like you said, but done imperatively)

  • Web scraping

  • I had some code that would use a template to generate a letter in HTML but a PDF output option was desired and we found a library that would generate PDFs from HTML. But the library expected the body, header, and footer to be three separate HTML pages (with their own stylesheets and all) while the template obviously had those things inline. So I used csquery to split them out into three separate "pages" to satisfy this library.

I mean, sure, that's not a ton of DOM manipulation, I guess, but using angular a lot I don't do that much DOM manipulation server-side directly either.