Sha256: cdae93f6494b902225ccd02f1cc3bb6821e58f9f7c4a8391e3258b2c012febb5

Contents?: true

Size: 458 Bytes

Versions: 6

Compression:

Stored size: 458 Bytes

Contents

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

class 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

    return component_paths
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
volt-0.8.14 lib/volt/boot.rb
volt-0.8.13 lib/volt/boot.rb
volt-0.8.11 lib/volt/boot.rb
volt-0.8.10 lib/volt/boot.rb
volt-0.8.9 lib/volt/boot.rb
volt-0.8.8 lib/volt/boot.rb