• towerful
    link
    fedilink
    arrow-up
    12
    ·
    edit-2
    2 days 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
      2 days ago

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