From time to time, I find myself writing server code that produces JavaScript code as the output result.
I can point out why it is really bad:
- Inextricable tie between server code and client code.
- Can render client code un-reusable.
But sometimes, it just seems to make sense.
And isn't it kinda sorta interesting?
I guess the question is, is writing server code that produces JavaScript code a really bad practice, or "does everyone do it"?