Missing haml doctype declaration appears to be the problem. Fixes #316