Show a warning when default helpers or Compass are not installed.

This commit is contained in:
Ben Hollis 2013-05-12 10:35:40 -07:00
parent ee05fa3d2c
commit 2d17fd7480

View file

@ -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
### ###