# File lib/staticmatic/mixins/render.rb, line 115 def determine_layout(dir = '') layout_name ||= @default_layout if @scope.instance_variable_get("@layout") layout_name = @scope.instance_variable_get("@layout") elsif dir dirs = dir.split("/") dir_layout_name = dirs[1] if layout_exists?(dir_layout_name) layout_name = dir_layout_name end end layout_name end