Why Nostr? What is Njump?
2024-08-13 14:34:06

Colin the Mathmo on Nostr: OK, I used to be able to do this, but it appears not to work any more ... what should ...

OK, I used to be able to do this, but it appears not to work any more ... what should I do instead.

In an HTML file I could have this:

<img
src="/cgi-bin/x.py?parm"
alt=""
/>

Then the "x.py" script could have this:

#!/usr/bin/python
sys.stdout.write(
file('x.png').read()
)

So the script is run and hands back the image to the HTML, which then displays it.

What can I do instead that is similarly minimalist?

To the people who know more about web-programming than I, and who can make things like this work ... thank you.
Author Public Key
npub1s4hqf67dr73p05v6nmff3c0yws920attdwjzyqjglyvcprzyu5rsp2qs84