Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

XSLT is to my knowledge the only client side technology that lets you include chunks of HTML without using JavaScript and without server-side technology.

XSLT lets you build completely static websites without having to use copy paste or a static website generator to handle the common stuff like menus.



> XSLT lets you build completely static websites without having to use copy paste or a static website generator to handle the common stuff like menus.

How many people ever do this?


Plain text, markup and Markdown to HTML with XSLT:

REPO: https://github.com/gregabbott/skip

DEMO: https://gregabbott.pages.dev/skip

(^ View Source: 2 lines of XML around a .md file)


Parsing the XSLT file fails in Firefox :)


Thanks! Reworked for Firefox.


I did that. You can write .rst, then transform it into XML with 'rst2xml' and then generate both HTML and PDF (using XSL-FO). (I myself also did a little literate programming this way: I added a special reStructuredText directive to mark code snippets, then extracted and joined them together into files.)


If this is "declarative XSL Processing Instructions", apparently 0.001% of global page loads.


skechers.com (a shoe manufacturer) used to do this:

https://web.archive.org/web/20140101011304/http://www.skeche...

They don't anymore. It was a pretty strange design.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: