tdreyno/middleman — Issue #165: Don't use a layout if none is found
Author: akahn
Created: 2011-11-25 21:36:37+00:00
State: open

Just getting started with Middleman. I'm making a single page app, and had been working in index.html. When I renamed it to index.html.erb (I needed a different Facebook app ID per environment), Middleman loaded up layout.erb. I don't need a layout, so I deleted the file. This caused a Sinatra error, and I had to configure middleman to not use the layout. As a n00b, I expected Middleman to not attempt to use the layout file once I deleted it. Maybe this should be the default behavior. What do you think?