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