News for hackers. Stuff that matters.
Re:WebAssembly by breck on Saturday February 27, 2021 @08:27PM (#26289842)
Is it? Can you provide some links to examples?
Re:WebAssembly by qbasic_forever on Saturday February 27, 2021 @08:34PM (#26289875)
Dive into the JAMstack and file-based CMS world. Netlify is kinda the big name here: https://www.netlify.com/ Push markdown content to git -> Netlify builds using your file-based CMS of choice -> HTML published as blog, etc.
Re:WebAssembly by eyelidlessness on Saturday February 27, 2021 @10:12PM (#26290341)
It is!

Beware the lure of MDX/equivalents. If you want to provide structure to your content and maintain it colocated to where you use it (or imported and type checked for where you have that kind of reusability), components in Markdown is an awful experience. Inverting that and writing Markdown within posts is my current solution. It’s not as nice as a plain .md file but it lets me mix writing and structure without compromise

Re:WebAssembly by eyelidlessness on Sunday February 28, 2021 @12:26AM (#26290918)
Realizing I should add a little more context: it’s very common to use Markdown for content and even for generating routes or subpages. But when those pages/posts/sections are expected to provide a certain data/content structure it’s generally provided by “front matter” metadata or mixed-source data like MDX which mixes JS/TS and JSX into Markdown. That experience doesn’t have any real editor safeguards, though it has some linting tools. But it has basically no dependency checks on what would be rendered. You just have to cross your fingers and hope. And if your content is expected to have any particular metadata, good luck refactoring.
Re:WebAssembly by mr_toad on Saturday February 27, 2021 @09:07PM (#26290025)
Static site generators have been around for ages. Jekyll was one of the first, as far as I know, but there are dozens of others now.

https://jekyllrb.com/

https://jamstack.org/

Re:WebAssembly by motogpjimbo on Sunday February 28, 2021 @05:31AM (#26292287)
I assume you mean NodeJS-based generators? Static site generators as a concept have existed since the very earliest days of the web. I worked on a team that used an in-house SSG to maintain dozens of sites years before NodeJS (or even V8) existed.
Re:WebAssembly by mr_toad on Sunday February 28, 2021 @07:35AM (#26292947)
Jekyll uses Ruby, not node. I don’t know what all the others use, there are so many.

Sure, generating HTML via another language is not new, but SSG pushed back against the notion of using dynamic CMS systems (which were de rigueur in the early 2000’s) in favour of static pages hosted on serverless systems and like GitHub pages and S3, with content (mostly markdown) held in version control systems instead of a database.

Re:WebAssembly by jspotanski on Saturday February 27, 2021 @08:31PM (#26289857)
Re:WebAssembly by judge2020 on Saturday February 27, 2021 @09:17PM (#26290081)
Re:WebAssembly by fctorial on Saturday February 27, 2021 @10:18PM (#26290378)
Can't list many from the top of my head. I've seen 'edit source' links on a bunch of sites.