#!/bin/rc path=(. /bin) req_p=`{echo -n $REQUEST_URI } fn run { lpaf=home$REQUEST_URI rpafs='/'; wd='/'; ifs='/'; arg = `{echo -n $REQUEST_URI} if (test -d $lpaf) { lpaf=$lpaf^'i' } for (i in $arg) { wd=$wd^$i rpafs=($rpafs $wd) wd=$wd'/' } http_content_type='text/html' echo Content-Type: $http_content_type echo; for (h in $bar) { $$h } mh $lpaf.md } fn sbar { echo -n 'ENTER HTML PREAMBLE HERE' ls -F home/./$rpafs | sed -e 's,/+\./+,/,g' \ -e '/\/i\.(md)$/d' \ -e 's/\.(md)$//' -e 's!^home!!' | sort | awk -F/ ' function p(x, y, s) { for(i=0; i < x-y; i+=1) printf s } BEGIN { lNF=2; printf "