Server-side scripting

Something I want to learn more about is how to do simple scripting on Gemini. Is that even possible? A Gemini server should be able to generate text on the fly and serve it up to clients. I'll need to look into servers.