Go to content

A couple of days ago while I was working on a side projects with a lot of Nunjucks templates, I noticed how aesthetically unpleasing the its template syntax is. The template tags feel alien in the HTML that surround them and I was thinking if it would be possible to use JSX as templating language instead.

While I was still contemplating if it would be worthwhile to experiment with JSX as template engine in Eleventy, I stumbled over a post about Astro on CSS-Tricks. Astro is an upcoming open source static site generator and build tool that is built on the premise of JSX templates and components. We can't look at the source code or even the documentation for Astro yet, but it looks promising. Astro is supposed to be framework agnostic and all the JavaScript will be executed during the build process and by default it does not ship JavaScript to the browser. There is a talk on Speakeasy JS from Fred K. Schott introducing the project which has a little more information and some code to look at.

Good stuff.