A web framework written in bash. fully configurable, with a basic templating engine, router and much more (donotsta.re)
from mesamunefire@lemmy.world to programming@programming.dev on 08 Jan 21:41
https://lemmy.world/post/24039235

Saw this on: donotsta.re/notice/ApmsQzRYt4SeNH543k

So wanted to share.

#programming

threaded - newest

towerful@programming.dev on 08 Jan 21:57 next collapse

The repo: git.sakamoto.pl/laudom/http.sh

An example:

#!/bin/bash
echo '<html><head><meta charset="utf-8"></head><body>'

if [[ ! "${get_data[example]}" ]]; then
	echo '<form>
			<input type="text" name="example">
			<input type="submit">
		</form>'
else
	echo "<p>you sent: $(html_encode "${get_data[example]}")</p>"
fi

echo '</body></html>'

mesamunefire@lemmy.world on 08 Jan 22:03 collapse

Its so…ugly to me but someone wanted it. Better than Cobol on wheelchair framework thats for sure.

QuazarOmega@lemy.lol on 08 Jan 23:04 next collapse

First off, big respect to the author for taking on this endeavour and procuring themselves permanent scars in the process. Second of all, I will hide back in my cave, thanks

moonpiedumplings@programming.dev on 11 Jan 04:39 collapse

Reminds me of github.com/cgsdev0/bash-stack

Made by this twitch streamer: m.twitch.tv/badcop_/home