Sha256: df36bc38b1092d14216f2c81c64d61640177c746f56d601ac095b354f2bb62b2
Contents?: true
Size: 473 Bytes
Versions: 20
Compression:
Stored size: 473 Bytes
Contents
module Sitepress module BuildPaths # In many cases, you'll want to serve up `pages/blah.html.haml` as `/blah` on # hosts like S3. To achieve this effect, we have to compile `pages/blah.html.haml` # to a folder with the filename `index.html`, so the final path would be `/blah/index.html` class DirectoryIndexPath < IndexPath def filename_with_default_format File.join(node.name, "#{node.default_name}.#{format}") end end end end
Version data entries
20 entries across 20 versions & 1 rubygems