Changed to support a layout.erb. Fixes #1: