Webanwendung mit FastCGI und Haskell
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 line
425B

  1. module App.Error (
  2. PageNotFound(..)
  3. ) where
  4. import Network.FastCGI
  5. import Network.URI
  6. import Template
  7. import Request
  8. data PageNotFound = PageNotFound
  9. instance RequestHandler PageNotFound where
  10. handle handler = do
  11. uri <- requestURI
  12. let path = uriPath uri
  13. res <- render "error404" [ ("pagetitle", "Seite nicht gefunden")
  14. , ("path", path)]
  15. output res