maid

A simple static web server https://github.com/nfjinjing/maid

Latest on Hackage:2014.10.14

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.

BSD3 licensed by Jinjing Wang
Maintained by Jinjing Wang

Maid

A simple static web server

install

cabal install maid

run

on port 3000

maid

on port 5000

maid 5000

custom css

place maid.css in current path

default is

body {
line-height: 1.5em;
font-size: 1.3em;
}

  .directory a
, .directory a:visited {
color: grey;
}

  a
, a:visited {
text-decoration: none;
color: #222;
display: block;
background: #eee;
padding: 3px;
padding-left: 20px;
}

a:hover {
background: #ccc;
}

li {
list-style-type: none;

width: 80%;
margin: 5px;
}

custom overwritten mime-types

place mime.types in current path

default: src/Web/Maid/ApacheMimeTypes.hs

Changes

2013.9.14

  • Better user mime types support

2010.9.29

Fix

  • use moe2

2010.9.19

Feature

  • custom css
  • custom mime.types

2010.9.9

Feature

  • add simple dir listing

2009.11.16

Feature

  • use simple access logger to show remote host

2009.8.25

Fix

  • use happstack backend, since evhttp is using too much cpu on linux

2009.8.18

Feature

  • fix deps
  • use evhttp as backend

2009.8.16

Feature

  • no $ noise

2009.7.25

Fix

  • proper css content-type
  • check "index.html" "index.htm" as well

2009.7.24.1

Feature

  • Use happstack backend for better error handling
  • add simple logger

2009.7.24

Init

comments powered byDisqus