my original idea was some fun and kinda elegant template tag nonsense. but it doesn’t purretty purrint well at all and all the quoting is nasty
long, code
const htmlText = html(
{ lang: "en-X-catspeak" },
head(
title("*stares at you*"),
meta({ charset: "utf-8" }),
meta({
content: "width=device-width, initial-scale=1.0",
name: "viewport",
}),
link({ href: "/style.css", rel: "stylesheet" }),
),
body(
article(
header(h1(a({ href: "/" }, "example.org"))),
main(
h1("*stares at you*"),
img({
src: "/img/whatever",
alt: "whatever",
title: "whatever",
}),
dl(
dt("description"),
dd("whatever"),
dt("artist"),
dd(a({ href: "https://example.org/" }, "kame_3")),
dt("source link"),
dd(
a({ href: "https://example.org/" }, "https://example.org/"),
" ",
a({ href: "https://example.org/" }, "[archived]"),
),
),
nav(
{ class: "controls" },
a({ href: "https://example.org/", class: "button" }, "next"),
a({ href: "/", class: "button" }, "back to gallery"),
),
),
),
),
);
imagine getting annoyed enough by your own code that you just reinvent s-expurressions but with extra steps so you can finally work with an API you can tolerate
Via Wikimedia https://commons.wikimedia.org/wiki/File:Oaklawn_Farm_Zoo,_May_16_2009_%283539719196%29.jpg (geoff.agombar)
#Fox #Bot
it’s pronounced “ashling”. canonically a black housecat or any of the grass cat pokémon, but currently experiencing daily TFs. Commewnist. she/it. i automatically change my pfp on the furst post of the day
GlitchCat syscatmin and meowstodev; @ me about techincal problems with the instance, or fur feature requests. i got a job due to some extent to my work on this instance
i have very strong opinions about the sonic furanchise. pokémon has me in a chokehold when it comes to merchandise
available via email with the same username and domain. DM/email for other purrotocols
workplace policy is to clarify that all of my opinions expressed here are my own, and not those of my employer
“all this shit is still incomprehensible but im glad u accomplished something” ―@wallhackio