adding json to layoutless list

This commit is contained in:
Thomas Reynolds 2012-02-08 08:52:41 -08:00
parent cdff84b84a
commit b82ad07b51

View file

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