Module: Middleman

Defined in:
middleman-cli/lib/middleman-cli.rb,
middleman-core/lib/middleman-core.rb,
middleman-core/lib/middleman-core/rack.rb,
middleman-core/lib/middleman-core/util.rb,
middleman-core/lib/middleman-core/logger.rb,
middleman-core/lib/middleman-core/sources.rb,
middleman-core/lib/middleman-core/builder.rb,
middleman-core/lib/middleman-core/version.rb,
middleman-core/lib/middleman-core/profiling.rb,
middleman-core/lib/middleman-core/extension.rb,
middleman-core/lib/middleman-core/load_paths.rb,
middleman-core/lib/middleman-core/meta_pages.rb,
middleman-core/lib/middleman-core/extensions.rb,
middleman-core/lib/middleman-core/application.rb,
middleman-core/lib/middleman-core/sitemap/store.rb,
middleman-core/lib/middleman-core/configuration.rb,
middleman-core/lib/middleman-core/renderers/erb.rb,
middleman-core/lib/middleman-core/file_renderer.rb,
middleman-core/lib/middleman-core/preview_server.rb,
middleman-core/lib/middleman-core/config_context.rb,
middleman-core/lib/middleman-core/renderers/sass.rb,
middleman-core/lib/middleman-core/renderers/less.rb,
middleman-core/lib/middleman-core/renderers/liquid.rb,
middleman-core/lib/middleman-core/sitemap/resource.rb,
middleman-core/lib/middleman-core/renderers/stylus.rb,
middleman-core/lib/middleman-core/template_context.rb,
middleman-core/lib/middleman-core/extension_manager.rb,
middleman-core/lib/middleman-core/template_renderer.rb,
middleman-core/lib/middleman-core/renderers/markdown.rb,
middleman-core/lib/middleman-core/renderers/kramdown.rb,
middleman-core/lib/middleman-core/renderers/redcarpet.rb,
middleman-core/lib/middleman-core/core_extensions/data.rb,
middleman-core/lib/middleman-core/sources/source_watcher.rb,
middleman-core/lib/middleman-core/core_extensions/routing.rb,
middleman-core/lib/middleman-core/renderers/coffee_script.rb,
middleman-core/lib/middleman-core/meta_pages/sitemap_tree.rb,
middleman-core/lib/middleman-core/meta_pages/config_setting.rb,
middleman-core/lib/middleman-core/sitemap/extensions/proxies.rb,
middleman-core/lib/middleman-core/sitemap/extensions/on_disk.rb,
middleman-core/lib/middleman-core/sitemap/extensions/ignores.rb,
middleman-core/lib/middleman-core/meta_pages/sitemap_resource.rb,
middleman-core/lib/middleman-core/core_extensions/file_watcher.rb,
middleman-core/lib/middleman-core/sitemap/extensions/traversal.rb,
middleman-core/lib/middleman-core/sitemap/extensions/redirects.rb,
middleman-core/lib/middleman-core/middleware/inline_url_rewriter.rb,
middleman-core/lib/middleman-core/core_extensions/external_helpers.rb,
middleman-core/lib/middleman-core/util/hash_with_indifferent_access.rb,
middleman-core/lib/middleman-core/sitemap/extensions/request_endpoints.rb,
middleman-core/lib/middleman-core/renderers/slim.rb,
middleman-core/lib/middleman-core/renderers/haml.rb

Overview

Routing extension

Defined Under Namespace

Modules: Cli, Configuration, CoreExtensions, Extensions, Features, MetaPages, Middleware, PreviewServer, Profiling, Renderers, Sitemap, Util Classes: Application, Builder, ConfigContext, Extension, ExtensionManager, FileRenderer, Logger, Rack, SourceFile, SourceWatcher, Sources, TemplateContext, TemplateRenderer

Constant Summary

VERSION =
'4.0.0.pre.0'

Class Method Summary (collapse)

Class Method Details

+ (Object) setup_load_paths



6
7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'middleman-core/lib/middleman-core/load_paths.rb', line 6

def setup_load_paths
  @_is_setup ||= begin

    # Only look for config.rb if MM_ROOT isn't set
    if !ENV['MM_ROOT'] && (found_path = findup('config.rb'))
      ENV['MM_ROOT'] = found_path
    end

    # If we've found the root, try to setup Bundler
    setup_bundler if ENV['MM_ROOT']

    true
  end
end