Use http_generated_images_path with Compass 0.12.x
This commit is contained in:
parent
13ea070c98
commit
199e418d01
2 changed files with 11 additions and 2 deletions
|
@ -47,6 +47,15 @@ module Middleman::CoreExtensions::Compass
|
||||||
File.join(app.http_prefix || "/", app.images_dir)
|
File.join(app.http_prefix || "/", app.images_dir)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Correctly support HTTP paths with generated sprites
|
||||||
|
if config.respond_to? :http_generated_images_path
|
||||||
|
config.http_generated_images_path = if app.respond_to? :http_generated_images_path
|
||||||
|
app.http_generated_images_path
|
||||||
|
else
|
||||||
|
File.join(app.http_prefix || "/", app.images_dir)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
config.http_stylesheets_path = if app.respond_to? :http_css_path
|
config.http_stylesheets_path = if app.respond_to? :http_css_path
|
||||||
app.http_css_path
|
app.http_css_path
|
||||||
else
|
else
|
||||||
|
|
|
@ -47,8 +47,8 @@ eos
|
||||||
s.add_dependency("uglifier", ["~> 1.0.0"])
|
s.add_dependency("uglifier", ["~> 1.0.0"])
|
||||||
s.add_dependency("slim", ["~> 1.0.2"])
|
s.add_dependency("slim", ["~> 1.0.2"])
|
||||||
s.add_dependency("haml", ["~> 3.1.0"])
|
s.add_dependency("haml", ["~> 3.1.0"])
|
||||||
s.add_dependency("sass", ["~> 3.1.7"])
|
s.add_dependency("sass", [">= 3.1.7"])
|
||||||
s.add_dependency("compass", ["~> 0.11.3"])
|
s.add_dependency("compass", ["~> 0.11"])
|
||||||
s.add_dependency("coffee-script", ["~> 2.2.0"])
|
s.add_dependency("coffee-script", ["~> 2.2.0"])
|
||||||
s.add_dependency("sprockets", ["~> 2.0.3"])
|
s.add_dependency("sprockets", ["~> 2.0.3"])
|
||||||
s.add_dependency("padrino-core", ["~> 0.10.5"])
|
s.add_dependency("padrino-core", ["~> 0.10.5"])
|
||||||
|
|
Loading…
Add table
Reference in a new issue