Sha256: b57e4b41834e8d618c641f4a89d755ef18ad98e4aa2381315eb785a6206fe2f1

Contents?: true

Size: 742 Bytes

Versions: 4

Compression:

Stored size: 742 Bytes

Contents

# Require Owl's libs.
Dir[Owl::CORE + "/**/*.rb"].each {|file| require file }

# Require user plugins.
Cabi.file('plugins:**/*.rb').each{ |file| require file }

module Owl
  module CMS
    module Bootstrap
      extend Sinatra::Extension

      register  Owl::CMS::Admin
      register  Owl::CMS::Cache
      register  Owl::CMS::Base

      helpers   Owl::CMS::Helpers::Base
      helpers   Owl::CMS::Helpers::Render
      helpers   Owl::CMS::Helpers::Truncate

      configure do
        set :static,          true
        set :public_folder,   Owl::Lib::Theme.instance.theme_path
        set :site_settings,   Owl::Lib::Settings.instance.settings
        set :theme_settings,  Owl::Lib::Theme.instance.settings
      end

    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
owl-cms-0.1.3 core/routes/bootstrap.rb
owl-cms-0.1.2 core/routes/bootstrap.rb
owl-cms-0.1.1 core/routes/bootstrap.rb
owl-cms-0.1.0 core/routes/bootstrap.rb