I can’t believe I didn’t know about this earlier, but if you have html/css/js files for a static website in directory /path/to/foo, you can serve it on port 9000 (or whatever) by running

 

cd /path/to/foo

python -m SimpleHTTPServer 9000

 

 

It’s nice because file:// urls don’t let you do nice things like ajax, etc.