Friday, 14 May 2010

Creating a little website with haskell

So my main website has been offline for a while. It was a wordpress powered site. I did not want to go back to wordpress but instead want a small site I can drop files onto should I need to.

For this I want static site so maintainence is minimal. Obviously I could have open up gvim and crafted a couple of pages of html and been done with it.

But that is not the programmer way, I decided to create a little DSL (in haskell) and would generate the html files for me from a simple haskell like description of the page. The main reason for doing this was so I could have consistent headers and footer on each page. The sort of thing you can do with php in about 30 seconds.

It only took me a couple of hours to knock it together and is probably something many haskellers have done in the past and many will do in the future. A nice little diversion from all the android coding I have been doing and again demonstrates, to me, how much fun hacking in Haskell is.

The one page place holder site is at www.marblemice.com.

No comments:

Post a Comment