Module: Middleman

Defined in:
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/builder.rb,
middleman-core/lib/middleman-core/version.rb,
middleman-core/lib/middleman-core/sources.rb,
middleman-core/lib/middleman-core/util/data.rb,
middleman-core/lib/middleman-core/util/rack.rb,
middleman-core/lib/middleman-core/extension.rb,
middleman-core/lib/middleman-core/profiling.rb,
middleman-core/lib/middleman-core/util/paths.rb,
middleman-core/lib/middleman-core/util/files.rb,
middleman-core/lib/middleman-core/extensions.rb,
middleman-core/lib/middleman-core/meta_pages.rb,
middleman-core/lib/middleman-core/load_paths.rb,
middleman-core/lib/middleman-core/util/binary.rb,
middleman-core/lib/middleman-core/application.rb,
middleman-core/lib/middleman-core/dns_resolver.rb,
middleman-core/lib/middleman-core/file_renderer.rb,
middleman-core/lib/middleman-core/sitemap/store.rb,
middleman-core/lib/middleman-core/renderers/erb.rb,
middleman-core/lib/middleman-core/configuration.rb,
middleman-core/lib/middleman-core/config_context.rb,
middleman-core/lib/middleman-core/preview_server.rb,
middleman-core/lib/middleman-core/renderers/sass.rb,
middleman-core/lib/middleman-core/renderers/less.rb,
middleman-core/lib/middleman-core/sitemap/resource.rb,
middleman-core/lib/middleman-core/callback_manager.rb,
middleman-core/lib/middleman-core/template_context.rb,
middleman-core/lib/middleman-core/renderers/stylus.rb,
middleman-core/lib/middleman-core/renderers/liquid.rb,
middleman-core/lib/middleman-core/extension_manager.rb,
middleman-core/lib/middleman-core/template_renderer.rb,
middleman-core/lib/middleman-core/util/uri_templates.rb,
middleman-core/lib/middleman-core/renderers/kramdown.rb,
middleman-core/lib/middleman-core/renderers/markdown.rb,
middleman-core/lib/middleman-core/renderers/redcarpet.rb,
middleman-core/lib/middleman-core/core_extensions/data.rb,
middleman-core/lib/middleman-core/preview_server/checks.rb,
middleman-core/lib/middleman-core/sources/source_watcher.rb,
middleman-core/lib/middleman-core/meta_pages/sitemap_tree.rb,
middleman-core/lib/middleman-core/renderers/coffee_script.rb,
middleman-core/lib/middleman-core/core_extensions/routing.rb,
middleman-core/lib/middleman-core/renderers/sass_functions.rb,
middleman-core/lib/middleman-core/meta_pages/config_setting.rb,
middleman-core/lib/middleman-core/sitemap/extensions/import.rb,
middleman-core/lib/middleman-core/preview_server/server_url.rb,
middleman-core/lib/middleman-core/sitemap/extensions/on_disk.rb,
middleman-core/lib/middleman-core/sitemap/extensions/proxies.rb,
middleman-core/lib/middleman-core/sitemap/extensions/ignores.rb,
middleman-core/lib/middleman-core/preview_server/information.rb,
middleman-core/lib/middleman-core/meta_pages/sitemap_resource.rb,
middleman-core/lib/middleman-core/dns_resolver/hosts_resolver.rb,
middleman-core/lib/middleman-core/core_extensions/collections.rb,
middleman-core/lib/middleman-core/sitemap/extensions/traversal.rb,
middleman-core/lib/middleman-core/sitemap/extensions/move_file.rb,
middleman-core/lib/middleman-core/sitemap/extensions/redirects.rb,
middleman-core/lib/middleman-core/core_extensions/file_watcher.rb,
middleman-core/lib/middleman-core/dns_resolver/network_resolver.rb,
middleman-core/lib/middleman-core/preview_server/server_hostname.rb,
middleman-core/lib/middleman-core/preview_server/tcp_port_prober.rb,
middleman-core/lib/middleman-core/dns_resolver/local_link_resolver.rb,
middleman-core/lib/middleman-core/preview_server/server_ip_address.rb,
middleman-core/lib/middleman-core/core_extensions/external_helpers.rb,
middleman-core/lib/middleman-core/preview_server/server_information.rb,
middleman-core/lib/middleman-core/dns_resolver/basic_network_resolver.rb,
middleman-core/lib/middleman-core/core_extensions/inline_url_rewriter.rb,
middleman-core/lib/middleman-core/sitemap/extensions/request_endpoints.rb,
middleman-core/lib/middleman-core/core_extensions/collections/lazy_root.rb,
middleman-core/lib/middleman-core/core_extensions/collections/lazy_step.rb,
middleman-core/lib/middleman-core/core_extensions/collections/pagination.rb,
middleman-core/lib/middleman-core/core_extensions/collections/step_context.rb,
middleman-core/lib/middleman-core/preview_server/network_interface_inventory.rb,
middleman-core/lib/middleman-core/preview_server/server_information_validator.rb,
middleman-core/lib/middleman-core/preview_server/server_information_callback_proxy.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, MetaPages, Pagination, Profiling, Renderers, Sass, Sitemap, Util Classes: Application, Builder, CallbackManager, ConfigContext, ConfigExtension, DnsResolver, Extension, ExtensionManager, FileRenderer, Logger, MapDescriptor, MiddlewareDescriptor, PreviewServer, Rack, SourceFile, SourceWatcher, Sources, TemplateContext, TemplateRenderer

Constant Summary

VERSION =

Current Version

Returns:

  • (String)
'4.1.10'.freeze

Class Method Summary collapse

Class Method Details

.setup_load_pathsObject



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