E
Evidlo
(spoiler: its XSLT)
I've been working on a little demo for how to avoid copy-pasting header/footer boilerplate on a simple static webpage. My goal is to approximate the experience of Jekyll/Hugo but eliminate the need for a build step before publishing. This demo shows how to get basic templating features with XSL so you could write a blog post which looks like
Some properties which set this approach apart from other methods:
There's been some talk about removing XSLT support from the HTML spec [0], so I figured I would show this proof of concept while it still works.
[0]: "Remove mentions of XSLT from the html spec" | Hacker News
See also: grug-brain XSLT XSLT – Native, zero-config build system for the Web | Hacker News
Comments URL: Show HN: JavaScript-free (X)HTML Includes | Hacker News
Points: 127
# Comments: 62
Continue reading...
I've been working on a little demo for how to avoid copy-pasting header/footer boilerplate on a simple static webpage. My goal is to approximate the experience of Jekyll/Hugo but eliminate the need for a build step before publishing. This demo shows how to get basic templating features with XSL so you could write a blog post which looks like
Code:
some content
[LIST]
[*]hello
[*]hello
[/LIST]
Code:
- no build step (no need to setup Jekyll on the client or configure Github/Gitlab actions)
- works on any webserver (e.g. as opposed to server-side includes, actions)
- normal looking URLs (e.g. `example.com/foobar` as opposed to `example.com/#page=foobar`)
[0]: "Remove mentions of XSLT from the html spec" | Hacker News
See also: grug-brain XSLT XSLT – Native, zero-config build system for the Web | Hacker News
Comments URL: Show HN: JavaScript-free (X)HTML Includes | Hacker News
Points: 127
# Comments: 62
Continue reading...