Hacker News new | ask | show | jobs
by Evidlo 497 days ago
A funky option for doing client-side includes and basic templating without JS is XSL.

Here's an small demo I threw together https://github.com/evidlo/xsl-website

A lot of people hate on XSL, but it has some interesting abilities!

1 comments

This is really neat, I didn't know the browser would serve a page that had been generated by XSL. Is this just a hack, or is it an intended feature?

I notice, for example, that this doesn't include a <!DOCTYPE html> at the top, but it still functions because browsers accommodate incorrectly formatted HTML.

It's a feature! People used to build websites on this technology.

> I notice, for example, that this doesn't include a <!DOCTYPE html> at the top, but it still functions because browsers accommodate incorrectly formatted HTML.

I was just being lazy. I've added it now.