Sha256: 4d9964f407239c1a966d5860122d1db49e331ece405091ae62e3ebcd9d445745

Contents?: true

Size: 530 Bytes

Versions: 7

Compression:

Stored size: 530 Bytes

Contents

module Sitepress
  module BuildPaths
    # Compiles pages directly from `/pages/blah.html.haml` to `/blah.html`. Handles root `index`
    # pages too, mainly grabbing the root, which doesn't have a name in the node, to the default_name
    # of the node, which is usually `index`.
    class IndexPath < RootPath
      def path_without_format
        node.name
      end

      def path_with_format
        "#{node.name}.#{format}"
      end

      def path_with_default_format
        path_with_format
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
sitepress-rails-2.0.0.beta7 lib/sitepress/build_paths/index_path.rb
sitepress-rails-2.0.0.beta6 lib/sitepress/build_paths/index_path.rb
sitepress-rails-2.0.0.beta5 lib/sitepress/build_paths/index_path.rb
sitepress-rails-2.0.0.beta4 lib/sitepress/build_paths/index_path.rb
sitepress-rails-2.0.0.beta3 lib/sitepress/build_paths/index_path.rb
sitepress-rails-2.0.0.beta2 lib/sitepress/build_paths/index_path.rb
sitepress-rails-2.0.0.beta1 lib/sitepress/build_paths/index_path.rb