mesamune@lemmy.world to Programming@programming.devEnglish · 2 days agoA web framework written in bash. fully configurable, with a basic templating engine, router and much moredonotsta.reexternal-linkmessage-square3fedilinkarrow-up140arrow-down11file-text
arrow-up139arrow-down1external-linkA web framework written in bash. fully configurable, with a basic templating engine, router and much moredonotsta.remesamune@lemmy.world to Programming@programming.devEnglish · 2 days agomessage-square3fedilinkfile-text
minus-squaretowerful@programming.devlinkfedilinkarrow-up12·edit-22 days agoThe repo: https://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>'
minus-squaremesamune@lemmy.worldOPlinkfedilinkEnglisharrow-up9·edit-22 days agoIts so…ugly to me but someone wanted it. Better than Cobol on wheelchair framework thats for sure.
The repo: https://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>'
Its so…ugly to me but someone wanted it. Better than Cobol on wheelchair framework thats for sure.