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:
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.
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: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.