Some useful .rb stuff for use with nanoc static website generator