mirror of
https://github.com/middleman/middleman.git
synced 2022-11-09 12:20:27 -05:00
default extensions
This commit is contained in:
parent
1a285ae36e
commit
c9e4d41533
1 changed files with 2 additions and 2 deletions
|
@ -33,6 +33,7 @@ module Middleman::CoreExtensions::Features
|
|||
# The Feature API is itself a Feature. Mind blowing!
|
||||
class << self
|
||||
def registered(app)
|
||||
app.set :default_extensions, []
|
||||
app.extend ClassMethods
|
||||
end
|
||||
alias :included :registered
|
||||
|
@ -78,12 +79,11 @@ module Middleman::CoreExtensions::Features
|
|||
local_config = File.join(self.root, "config.rb")
|
||||
if File.exists? local_config
|
||||
$stderr.puts "== Reading: Local config" if logging?
|
||||
Middleman::Server.class_eval File.read(local_config)
|
||||
class_eval File.read(local_config)
|
||||
set :app_file, File.expand_path(local_config)
|
||||
end
|
||||
|
||||
# Add in defaults
|
||||
$stderr.puts default_extensions
|
||||
default_extensions.each do |ext|
|
||||
activate ext
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue