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