i’m not saying you should generate websites the way that i generate websites, but whenever i look at how other people generate websites i am very unimpressed

is

<element name="h1" namespace="&xhtml;">
<value-of select="atom:title"/>
</element>

really better than

<h1>{{ post.title }}</h1>

?? no. but also yes

@Lady do you personally prefer using XSLT or using string templating languages? I have some mild fondness for each, myself

@jamey well, i prefer XSLT if the data source is XML. if the data source isn’t XML then you might have issues

Follow

@jamey i should probably add to this that i am quite fond of GNU Make, which is (at any high level of complexity) basically built on top of string templating, so

@Lady I built a big thing with m4 once and still feel like that was a reasonable choice so… yeah, string templating is okay in my book 😂

I have often wished for HTML validators that understand modern template languages though. then I wouldn't mind that the language itself doesn't understand anything about the structure of its output and can't detect errors for me

I've also wished for both XSLT and string templating languages that I could provide an input schema and validate that the template only tries to access fields that will actually be in the input

Sign in to participate in the conversation
📟🐱 GlitchCat

A small, community‐oriented Mastodon‐compatible Fediverse (GlitchSoc) instance managed as a joint venture between the cat and KIBI families.