ixti/jekyll-assets

View on GitHub
lib/jekyll/assets/plugins.rb

Summary

Maintainability
A
0 mins
Test Coverage
# Frozen-string-literal: true
# Copyright: 2012 - 2020 - ISC License
# Encoding: utf-8

module Jekyll
  module Assets
    Plugins = Module.new
  end
end

# --
# @see plugins/**/*
# Require all our plugins.
# @return [nil]
# --
dir = Pathutil.new(__dir__).join("plugins")
dir.children do |v|
  unless v.directory?
    require v
  end
end