lib/brief.rb in brief-1.1.0 vs lib/brief.rb in brief-1.2.0

- old
+ new

@@ -38,18 +38,29 @@ end def self.load_models(from_folder=nil) Brief::Model.load_all(from_folder: from_folder) end + + # Adapters for Rails, Middleman, or Jekyll apps + def self.activate_adapter(identifier) + require "brief/adapters/#{ identifier }" + adapter = (Brief::Adapters.const_get(identifier.camelize) rescue nil) + adapter.try(:activate_adapter) + end end require "brief/core_ext" require "brief/version" require "brief/util" require "brief/configuration" require "brief/document/rendering" require "brief/document/front_matter" require "brief/document/content_extractor" +require "brief/document/structure" +require "brief/document/section" +require "brief/document/section/mapping" +require "brief/document/section/builder" require "brief/document" require "brief/document_mapper" require "brief/repository" require "brief/model" require "brief/model/definition"