Show a warning when default helpers or Compass are not installed.
This commit is contained in:
parent
ee05fa3d2c
commit
2d17fd7480
|
@ -15,10 +15,10 @@ module Middleman
|
||||||
|
|
||||||
begin
|
begin
|
||||||
# Setup default helpers
|
# Setup default helpers
|
||||||
require 'padrino-helpers'
|
|
||||||
require "middleman-more/core_extensions/default_helpers"
|
require "middleman-more/core_extensions/default_helpers"
|
||||||
Middleman::CoreExtensions::DefaultHelpers.new(app)
|
Middleman::CoreExtensions::DefaultHelpers.new(app)
|
||||||
rescue LoadError
|
rescue LoadError
|
||||||
|
$stderr.puts "Default helpers not installed: #{$!}"
|
||||||
end
|
end
|
||||||
|
|
||||||
require "i18n"
|
require "i18n"
|
||||||
|
@ -40,6 +40,7 @@ module Middleman
|
||||||
require "middleman-more/core_extensions/compass"
|
require "middleman-more/core_extensions/compass"
|
||||||
Middleman::CoreExtensions::Compass.new(app)
|
Middleman::CoreExtensions::Compass.new(app)
|
||||||
rescue LoadError
|
rescue LoadError
|
||||||
|
$stderr.puts "Compass not installed: #{$!}"
|
||||||
end
|
end
|
||||||
|
|
||||||
###
|
###
|
||||||
|
|
Loading…
Reference in a new issue