Just released a tiny Node module that parses the attributes from a single tag (any attribute from anything that looks like a tag, not just valid attributes from HTML tags).
(Regular expressions just don’t cut it when you want to support boolean attributes as well as attributes with dashes in the names and unquoted, single-quoted, and double-quoted values.)
You’ll soon be able to specify common <head> attributes, the syntax highlighting theme, and which libraries to include (htmx, alpine, water) declaratively.
(You can still return an object from your routes or use the HEAD slot to add any custom code to the head of your pages. The advantage of the <kitten> tag method is you can use it in pages as well as in fragments/components.)
Well, it might take a few more minutes in front of the mirror but I think I still scrub up well for three years shy of the big five-oh. All dolled up and ready to fly to Paris for my talk on Kitten* and the Small Web tomorrow at #NewCrafts.
Can’t believe this year marks my 40th year of programming.
I owe a lot to my dad bringing home that IBM XT compatible and a BASIC manual when I was 7.
Under the hood, I’ve replaced body-parser with express-busboy. That’s a major change so if something breaks for you, please do let me know. Also fixed a few things, including a parse error triggered by some scripts.
Hey nerds, is anyone still maintaining any Web Rings? I used to love those. I know they don't serve much purpose in the modern corporate internet but it seems like they'd be a good fit for the handmade web. #question#SmallWeb#WebRing#SmolWeb
> The aim of the project is to develop new and alternative discovery methods for the Internet. It's an experimental workshop as much as it is a public service, the overarching goal is to elevate the more human, non-commercial sides of the Internet. A side-goal is to do this without requiring datacenters and expensive enterprise hardware
I do rather love being able to run tail¹ on my database tables² as I work on building Domain³ with Kitten⁴ ;)
(JSDB keeps tables in an append-only JavaScript log which are read fully into memory when the database is opened. And yes, if you noticed the class names, you can store custom objects.)
Anyone here know anyone from Paddle that you can put me in touch with? (Or share your experience with them?)
I’m reconsidering whether Stripe is the right solution for the initial payments option in Domain (https://codeberg.org/domain/app) or whether it makes more sense (and would be easier for folks who want to run their own Domain instances and become Small Web hosts) if I integrated a Merchant of Record (MoR) solution instead.
Right, so I signed up with Paddle and with FastSpring (also a merchant of record) and I don’t think Paddle is going to work as you can’t create subscription plans via their API. In FastSpring you can so I’m going to continue to looking at that. So, to update my query:
Anyone know anyone at FastSpring they can introduce me to or have any experiences with them they can share with me?
I’m sure you’re all riveted to hear my next niche micro-update on finding a payment solution to integrate into #Domain¹ but I’m actually reconsidering #Paddle. The more I think about it, the less custom logic there is in Domain to handle payment providers the better. A very lightweight abstraction over embedding a #payment form and handling #webhooks should make it easier to add others in the future at the cost of more setup in the payment provider itself.
I don't really understand the attacks on the mastodon app. There are many apps out there. Nobody is forcing you to use their app or to use mastodon.social. The fediverse is bigger than any one instance or app. Let's build a bigger fediverse and not fall into the trap of infighting, OK? #UnpopularOpinion
Digital wellbeing move of the week: I set up an e-mail address for the sole purpose of signing up to newsletters. From idea to action in just 3 years, wow.