Force svgz to be binary

This commit is contained in:
Ben Hollis 2013-02-06 00:26:21 -08:00
parent 3a3d5bbe3b
commit 42320ade8d

View file

@ -23,6 +23,7 @@ module Middleman
# @return [Boolean]
def self.binary?(filename)
ext = File.extname(filename)
return true if ext == '.svgz'
return false if Tilt.registered?(ext.sub('.',''))
ext = ".#{ext}" unless ext.to_s[0] == ?.