• QuazarOmega@lemy.lol
    link
    fedilink
    arrow-up
    18
    ·
    23 hours ago

    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

  • towerful@programming.dev
    link
    fedilink
    arrow-up
    10
    ·
    edit-2
    24 hours ago

    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>'
    
    
    • mesamune@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      9
      ·
      edit-2
      24 hours ago

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