Comment by 🚀 clarahd

Re: "I Added Scripting To Gemini"
In: u/bluesman

@bluesman it doesn't "violate the spec" because it uses preformatted text. Then it is fair if I also want style guides and table processing? Adhoc with no cost benefit analysis? Unilaterally by whoever?

🚀 clarahd

Jul 11 · 5 months ago

2 Later Comments ↓

🚀 clarahd · Jul 11 at 11:23:

@clseibold I might have botched that analogy. I meant if the Atom could no longer squeeze through microscopic openings in the wall due to his new Sumo bod, he might want to rethink that cost benefit tradeoff.

🦎 bluesman [OP] · Jul 11 at 13:39:

@clarahd It wouldn't violate the spec if I used <script></script> instead of preformatted text. The pages fed into Scriptonite are basically templates that can also be viewed by any Gemini client. Preformatted text makes sense because that's how we view code in Gemini anyway.

I'm not sure about your analogy but if you want table formatting you could probably emulate what Gemipedia does in Scriptonite (or CGI if you have server access). That might be a cool library.

Original Post

🦎 bluesman
— Gemini Scripting Revisited

I Added Scripting To Gemini — I wrote a gemlog about it. It doesn't break the spec and works in all clients. In a nutshell, it's a service that interprets gemini pages with embedded JavaScript. There are a couple example programs at the link including a simple game. Because scripts have the ability to request data from the user, it's much more useful than first thought.

💬 21 comments · 4 likes · Jul 09 · 6 months ago