1
0
Fork 0
mirror of https://github.com/middleman/middleman.git synced 2022-11-09 12:20:27 -05:00

Avoid layouts on sass

This commit is contained in:
Thomas Reynolds 2012-05-26 14:27:26 -07:00
parent 3b847696ff
commit 0788ebce15

View file

@ -76,7 +76,7 @@ module Middleman
end
# Certain output file types don't use layouts
needs_layout = !%w(.js .json .css .txt).include?(extension)
needs_layout = !%w(.js .json .css .txt).include?(File.extname(path))
# If we need a layout and have a layout, use it
if needs_layout && layout_path = fetch_layout(engine, opts)