class Middleman::Sitemap::Store
def file_to_path(file)
-
(String)
-
Parameters:
-
file
(String
) --
def file_to_path(file) file = File.expand_path(file, @app.root) prefix = @app.source_dir.sub(/\/$/, "") + "/" return false unless file.include?(prefix) path = file.sub(prefix, "") extensionless_path(path) end