Sort plugins so people can have "load orders".

This allows for people to do something like "_plugins/1-autoload-global.rb" and have it load first and so on making it much easier to organize code and have a "header file" that does all the requiring up front if it's needed for all plugins.
This commit is contained in:
Jordon Bedwell 2013-10-31 07:12:54 -05:00
parent aebda2b7d8
commit 7a1f63d994
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ module Jekyll
# directory.
unless self.safe
self.plugins.each do |plugins|
Dir[File.join(plugins, "**/*.rb")].each do |f|
Dir[File.join(plugins, "**/*.rb")].sort.each do |f|
require f
end
end