From 9d614c34d5677904589984596180e5b7994710c6 Mon Sep 17 00:00:00 2001 From: Tom Robinson Date: Fri, 31 Mar 2017 11:39:58 -0700 Subject: [PATCH] Update README.md --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index f35db0c..1fe854d 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,20 @@ a (sort of) sinatra-like web application framework for bash (yes, bash), with a define handlers like this: + get "/" index; index () { + header "Content-Type" "text/html" + cat < + + hello world + + + PATH_INFO=$PATH_INFO + + + EOT + } + get "/redirect" redirect_handler; redirect_handler () { status 302 header "Location" "http://jackjs.org/"