1
0
forked from GitHub/gf-core

TranslateApp now have browser for abstract syntax

This commit is contained in:
krasimir
2009-11-29 14:51:12 +00:00
parent abe21f6fbb
commit 836e742ddf
11 changed files with 408 additions and 81 deletions

View File

@@ -4,6 +4,7 @@ module FastCGIUtils (initFastCGI, loopFastCGI,
stderrToFile,
outputJSONP,
outputPNG,
outputHTML,
splitBy) where
import Control.Concurrent
@@ -170,6 +171,11 @@ outputPNG x = do
setHeader "Content-Type" "image/png"
outputStrict x
outputHTML :: String -> CGI CGIResult
outputHTML x = do
setHeader "Content-Type" "text/html"
outputStrict x
outputStrict :: String -> CGI CGIResult
outputStrict x | x == x = output x
| otherwise = fail "I am the pope."