3 ms·
> It's funny how, for years, we've been trying to get away from HTML mixed with code (specially in spaguetti PHP), just to get back to something similar again.
by camus2 9y ago
> It's funny how, for years, we've been trying to get away from HTML mixed with code (specially in spaguetti PHP), just to get back to something similar again.
The difference is that PHP+HTML is basically just templating. The HTML you put in PHP isn't a type that the interpreter is aware of and PHP isn't going to validate anything about.
Javascript used to have E4X in Firefox until it was removed when ES4 effort failed.
https://developer.mozilla.org/en-US/docs/Archive/Web/E4X/Processing_XML_with_E4X https://developer.mozilla.org/en-US/docs/Archive/Web/E4X/Pro...
Like someone said separation of concerns =/= separation of files.