Added test and fix for a double render issue when using HAML.