lib/locomotive/mounter/reader/file_system/pages_reader.rb
# Take the path to a file on the filesystem
# and return its matching value for a Page.
#
# @param [ String ] filepath The path to the file
#
# @return [ String ] The fullpath of the page
#
Take the path to a file on the filesystem
and return its matching value for a Page.
Take the path to a file on the filesystem and return its matching value for a Page .
def filepath_to_fullpath(filepath)
            fullpath = filepath.gsub(File.join(self.root_dir, '/'), '')
            fullpath.gsub!(/^\.\//, '')
            fullpath.split('.').first.dasherize
          end
def filepath_to_fullpath ( filepath ) fullpath = filepath . gsub ( File . join ( self . root_dir , '/' ) , '' ) fullpath . gsub! ( / ^ \. \/ / , '' ) fullpath . split ( '.' ) . first . dasherize end
Take the path to a file on the filesystem
and return its matching value for a Page.
Take the path to a file on the filesystem and return its matching value for a Page .
The fullpath of the page
The fullpath of the page
 String 
filepath
<not_specific>
<not_specific>
filepath The path to the file
filepath The path to the file