Sha256: 24058676a93fc443fd7bad608030bcbcb366c2b83882d58c1fca100232c6fb9b

Contents?: true

Size: 453 Bytes

Versions: 16

Compression:

Stored size: 453 Bytes

Contents

require 'volt/models'
require 'volt/server/rack/component_paths'
if RUBY_PLATFORM == 'opal'
  require 'volt'
else
  require 'volt/page/page'
end

module Volt
  def self.boot(app_path)
    # Run the app config to load all users config files
    Volt.run_files_in_config_folder

    if Volt.server?
      $page = Page.new
    end

    component_paths = ComponentPaths.new(app_path)
    component_paths.require_in_components

    component_paths
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
volt-0.8.27.beta3 lib/volt/boot.rb
volt-0.8.27.beta2 lib/volt/boot.rb
volt-0.8.27.beta1 lib/volt/boot.rb
volt-0.8.26.beta1 lib/volt/boot.rb
volt-0.8.26 lib/volt/boot.rb
volt-0.8.24 lib/volt/boot.rb
volt-0.8.23 lib/volt/boot.rb
volt-0.8.22 lib/volt/boot.rb
volt-0.8.22.beta2 lib/volt/boot.rb
volt-0.8.22.beta1 lib/volt/boot.rb
volt-0.8.21 lib/volt/boot.rb
volt-0.8.20 lib/volt/boot.rb
volt-0.8.19 lib/volt/boot.rb
volt-0.8.18 lib/volt/boot.rb
volt-0.8.17 lib/volt/boot.rb
volt-0.8.16 lib/volt/boot.rb