winton / stasis

Static sites made powerful
http://stasis.me
MIT License
677 stars 56 forks source link

layout associated with extension #4

Closed morgoth closed 13 years ago

morgoth commented 13 years ago

Hi.

I'm using haml layout file (configured in controller.rb as layout => "layout.html.haml") I have also separate file for styles (main.css.sass). Including styles in my layout file is done by:

%link{:href => "main.css", :rel => "stylesheet", :type => "text/css"}

Currently SASS file is also using layout file, so generated CSS file is wrong (contains layout.html with yielded css file). This is easy to fix - in controller.rb, I can write: layout /.*html.haml/ => 'layout.html.haml'

However I think it would be nice when layout files would be used only with files having same extension.

winton commented 13 years ago

Similar to #8. Will give some thought to it this weekend, thanks for the suggestion.

budu commented 13 years ago

+1