wesh.sh 297 B

1234567891011121314151617
  1. #!/bin/sh
  2. . ./conf.sh
  3. . ./lib.sh
  4. . ./corehandlers.sh
  5. cd ..
  6. [ -f "$SITE_DIR/_wesh/config" ] && . "$SITE_DIR/_wesh/config"
  7. if [ -f "./$REQUEST_PATH" ]; then
  8. static_file "./$REQUEST_PATH"
  9. else
  10. printf "Content-Type: text/html\n"
  11. printf "\n"
  12. handler "$(get_lib_file master.tpl)"
  13. fi